From: <smi...@us...> - 2003-12-22 21:59:27
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv20388/scripts Modified Files: build.sh Log Message: execute most task "nice" (lower priority) Index: build.sh =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/build.sh,v retrieving revision 1.63 retrieving revision 1.64 diff -u -d -r1.63 -r1.64 --- build.sh 20 Dec 2003 19:46:19 -0000 1.63 +++ build.sh 22 Dec 2003 21:59:24 -0000 1.64 @@ -70,7 +70,7 @@ find ./ -name CVS | xargs rm -rf || exit 1 mkdir -p $DL_DIR/dist || exit 1 echo "compressing files" - tar -cjf $DL_DIR/dist/devil-linux-$DL_VERSION_FULL$DLDEV.tar.bz2 . || exit 1 + nice tar -cjf $DL_DIR/dist/devil-linux-$DL_VERSION_FULL$DLDEV.tar.bz2 . || exit 1 rm -rf $DL_DIR/dist/devil-linux-$DL_VERSION_FULL mv * $DL_DIR/dist cp $DL_DIR/CHANGES $DL_DIR/dist/CHANGES-devil-linux-$DL_VERSION_FULL$DLDEV @@ -78,23 +78,23 @@ ;; mrproper ) echo -n "cleaning $DL_DIR/dist " - rm -rf $DL_DIR/dist + nice rm -rf $DL_DIR/dist echo "done" echo -n "cleaning $WORKDIR " - rm -rf $WORKDIR + nice rm -rf $WORKDIR echo "done" ;; clean ) echo "cleaning $ETCDIR" - rm -rf $ETCDIR + nice rm -rf $ETCDIR echo "cleaning $CDDOCDIR" - rm -rf $CDDOCDIR + nice rm -rf $CDDOCDIR echo "cleaning $ISODIR" - rm -rf $ISODIR - rm -rf $WORKDIR/modules - rm -rf $WORKDIR/modules.initrd - rm -f ${DONE}_install* - rm -f ${DONE}_iso* + nice rm -rf $ISODIR + nice rm -rf $WORKDIR/modules + nice rm -rf $WORKDIR/modules.initrd + nice rm -f ${DONE}_install* + nice rm -f ${DONE}_iso* echo "done" ;; @@ -121,25 +121,25 @@ for TAR in `ls $SRCDIR/*.tar.bz2` do echo unpacking $TAR - tar -xjf $TAR || exit 1 + nice tar -xjf $TAR || exit 1 done for TAR in `ls $SRCDIR/*.tar.gz` do echo unpacking $TAR - tar -xzf $TAR || exit 1 + nice tar -xzf $TAR || exit 1 done for TAR in `ls $SRCDIR/*.tgz` do echo unpacking $TAR - tar -xzf $TAR || exit 1 + nice tar -xzf $TAR || exit 1 done for TAR in `ls $SRCDIR/*.tar.Z` do echo unpacking $TAR - tar -xzf $TAR || exit 1 + nice tar -xzf $TAR || exit 1 done popd > /dev/null @@ -180,7 +180,7 @@ pushd $DL_DIR/scripts/.buildorder/ &> /dev/null ln -sf ../* ./ popd &> /dev/null - insserv -f -d $(grep -l "# DL-build-system v3" $DL_DIR/scripts/.buildorder/* | grep -v "build\.sh") || exit 1 + nice insserv -f -d $(grep -l "# DL-build-system v3" $DL_DIR/scripts/.buildorder/* | grep -v "build\.sh") || exit 1 #echo NOT creating links for: #grep -L "# DL-build-system v3" $DL_DIR/scripts/.buildorder/* | grep -v "build\.sh" 2> /dev/null @@ -290,12 +290,12 @@ if [ -z "$RUN_ONLY_CMD" ];then if [ "$CONFIG_DISABLELOGGING" = "y" ]; then - $MYDIR/$SCRIPT $CMD + nice $MYDIR/$SCRIPT $CMD else - $MYDIR/$SCRIPT $CMD &> $WORKDIR/LOGS/$CMD/$SCRIPT + nice $MYDIR/$SCRIPT $CMD &> $WORKDIR/LOGS/$CMD/$SCRIPT fi else - $MYDIR/$SCRIPT $CMD + nice $MYDIR/$SCRIPT $CMD fi RETVAL=$? t2=$(date +"%s") |