Justin Vreeland 794d92
#! /bin/sh
Justin Vreeland 794d92
# Description:
Justin Vreeland 794d92
#     rpmbuild combo to build the given architecture without
Justin Vreeland 794d92
#     debugging information, perf or tools.
Justin Vreeland 794d92
#
Justin Vreeland 794d92
# Sample usage:
Justin Vreeland 794d92
#     ./fast-build.sh x86_64 kernel-4.7.0-0.rc1.git1.2.fc25.src.rpm
Justin Vreeland 794d92
Justin Vreeland 794d92
if [ -z "$1" ] || [ -z "$2" ]; then
Justin Vreeland 794d92
    echo "usage: $0 [ arch ] [ kernel-x.x.x.fcxx.src.rpm ] "
Justin Vreeland 794d92
fi
Justin Vreeland 794d92
Justin Vreeland 794d92
rpmbuild --target $1 --without debug --without debuginfo --without perf --without tools --rebuild $2