Changeset da5860a
- Timestamp:
- 11/23/2005 09:55:01 PM (19 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 0617288
- Parents:
- 5adc3fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jhalfs
r5adc3fd rda5860a 27 27 jhalfs produces will be in the directory 28 28 DIR/jhalfs. Default is \"/mnt/lfs\". 29 30 --rebuild clean the build directory before to perfom 31 any other task. The directory is cleaned 32 only if it was populated by a previous 33 jhalfs run. 29 34 30 35 -P, --get-packages download the packages and patches. This … … 113 118 ################################### 114 119 120 121 #----------------------------# 122 clean_builddir() { 123 #----------------------------# 124 # Test if the clean must be done. 125 if [ "$CLEAN" = "1" ] ; then 126 # Test to make sure we're running the clean as root 127 if [ "$UID" != "0" ] ; then 128 echo "You must be logged in as root to clean the build directory." 129 exit 1 130 fi 131 # Test to make sure that the build directory was populated by jhalfs 132 if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then 133 echo "Look like $BUILDDIR was not populated by a previous jhalfs run." 134 exit 1 135 else 136 # Clean the build directory 137 echo -ne "Cleaning $BUILDDIR...\n" 138 rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,tools,usr,var} 139 echo -ne "Cleaning $JHALFSDIR...\n" 140 rm -rf $JHALFSDIR/{0*,1*,envars,sources-dir,commands,logs,Makefile,dump-lfs-scripts.xsl,functions,packages,patches} 141 echo -ne "done\n" 142 fi 143 fi 144 } 115 145 116 146 #----------------------------# … … 963 993 ;; 964 994 995 --rebuild ) CLEAN=1 ;; 996 965 997 --download-client | -D ) 966 998 test $# = 1 && eval "$exit_missing_arg" … … 1051 1083 done 1052 1084 1085 # Prevents setting "-d /" by mistake. 1086 1087 if [ $BUILDDIR = / ] ; then 1088 echo -ne "\nThe root directory can't be used to build LFS.\n\n" 1089 exit 1 1090 fi 1091 1053 1092 # If $BUILDDIR have subdirectories like tools/ or bin/, stop the run 1054 # and notify the user about that. This also prevents setting "-d /" 1055 # by mistake. 1056 1057 if [ -d $BUILDDIR/tools -o -d $BUILDDIR/bin ] ; then 1093 # and notify the user about that. 1094 1095 if [ -d $BUILDDIR/tools -o -d $BUILDDIR/bin ] && [ -z $CLEAN ] ; then 1058 1096 eval "$no_empty_builddir" 1059 1097 fi 1098 1099 # If requested, clean the build directory 1100 clean_builddir 1060 1101 1061 1102 # Find the download client to use, if not already specified.
Note:
See TracChangeset
for help on using the changeset viewer.