- Timestamp:
- 02/10/2012 09:33:23 AM (12 years ago)
- Branches:
- 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 743414b
- Parents:
- 608fbe1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r608fbe1 rd7390a5 47 47 clean_builddir() { # 48 48 #----------------------------# 49 # Test if the clean must be done. 50 if [ "${CLEAN}" = "y" ]; then 49 # Test if the clean must be done. 50 if [ "${CLEAN}" = "y" ]; then 51 # If empty (i.e. could contain lost+found), do not do anything 52 if $(ls $BUILDDIR/* > /dev/null 2>&1) && 53 [ "$(ls $BUILDDIR)" != "lost+found" ]; then 51 54 # Test to make sure that the build directory was populated by jhalfs 52 55 if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then … … 55 58 # Test that dev filesystems are not mounted in $BUILDDIR 56 59 elif mount | grep $BUILDDIR/dev > /dev/null ; then 57 echo "Looks like kernel f ylesystems are yetmounted on $BUILDDIR."60 echo "Looks like kernel filesystems are still mounted on $BUILDDIR." 58 61 exit 1 59 62 else … … 61 64 echo -n "Cleaning $BUILDDIR ..." 62 65 # First delete proc and sys directories, if exist. 63 # Both should be empty. If not, be sure to exit. 66 # Both should be empty. If not, we exit, and the rmdir command 67 # has generated an error message 64 68 if [ -d $BUILDDIR/proc ] ; then 65 69 sudo rmdir $BUILDDIR/proc || exit 1 … … 78 82 fi 79 83 fi 84 fi 80 85 } 81 86
Note:
See TracChangeset
for help on using the changeset viewer.