SVN: toys/tools/cleanbuild/cleanbuild
sparky
sparky at pld-linux.org
Sat Feb 27 21:27:08 CET 2010
Author: sparky
Date: Sat Feb 27 21:27:08 2010
New Revision: 11208
Modified:
toys/tools/cleanbuild/cleanbuild
Log:
- renamed force to forceumount
- allow setting FORCE_UMOUNT and CLEANAFTER in .cleanbuildrc
Modified: toys/tools/cleanbuild/cleanbuild
==============================================================================
--- toys/tools/cleanbuild/cleanbuild (original)
+++ toys/tools/cleanbuild/cleanbuild Sat Feb 27 21:27:08 2010
@@ -8,6 +8,8 @@
IGNORE=""
ignore() { IGNORE="$IGNORE $*"; }
NODEBUG=true
+CLEANAFTER=false
+FORCE_UMOUNT=false
[ -r .cleanbuildrc ] && . ./.cleanbuildrc
@@ -30,7 +32,7 @@
echo "cleanbuild options:"
echo " -32, -64, -th-i486 - select architecture"
echo " --cleanafter | -ca - clean after build"
- echo " --force | -f - force umount tmpfs"
+ echo " --forceumount | -fu - force umount tmpfs"
echo " --debug - enable debug"
echo " -a, -b, -c, -d, -e - select alternative chroot directory"
exit 1
@@ -41,8 +43,6 @@
CREATE=false
BUILD=false
INSTALL=false
-CLEANAFTER=false
-FORCE=false
case "$0" in
*clean)
@@ -113,8 +113,8 @@
--debug)
NODEBUG=false
;;
- --force | -f)
- FORCE=true
+ --forceumount | -fu)
+ FORCE_UMOUNT=true
;;
-[a-e])
SUFFIX="$OPT"
@@ -238,7 +238,7 @@
build_remove_root()
{
$NODEBUG || set -x
- if $FORCE; then
+ if $FORCE_UMOUNT; then
# safety checks.
[ "$CHDIR" ] || exit 1
[ -d "$CHDIR" ] || exit 1
More information about the pld-cvs-commit
mailing list