PACKAGE_VERSION=""
PACKAGE_NAME=""
+DEF_NICE_LEVEL=0
+
if [ -f ~/etc/builderrc ]; then
. ~/etc/builderrc
elif [ -f ~/.builderrc ]; then
OPTIONS="$OPTIONS -A"
fi
for i in $SOURCES $PATCHES $ICONS; do
+ if ! [ -r `nourl $i` ]
+ then
if
echo $i | grep -vE '(http|ftp|https|cvs)://' |\
grep -qE '\.(gz|bz2)$'
if [ ! -f "`nourl $i`" ]; then
Exit_error err_no_source_in_repo;
fi
+ fi
done
if [ "$CHMOD" = "yes" ]; then
build-source )
BUILD_SWITCH="-bs --nodeps" ;;
esac
- rpm $BUILD_SWITCH -v $QUIET $CLEAN $SPECFILE
+ nice -n ${DEF_NICE_LEVEL} rpm $BUILD_SWITCH -v $QUIET $CLEAN $SPECFILE
if [ "$?" -ne "0" ]; then
Exit_error err_build_fail;
COMMAND="usage"; shift ;;
-l | --logtofile )
shift; LOGFILE="${1}"; shift ;;
+ -ni| --nice )
+ shift; DEF_NICE_LEVEL=${1}; shift ;;
-m | --mr-proper )
COMMAND="mr-proper"; shift ;;
-nc | --no-cvs )