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