Changeset 2ee1d11 for common/common-functions
- Timestamp:
- 10/07/2006 07:14:47 PM (18 years ago)
- Branches:
- experimental
- Children:
- 42e1b38
- Parents:
- f5791f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
rf5791f0 r2ee1d11 45 45 # 46 46 case $script_name in 47 tcl) echo $(grep "^tcl" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 48 linux-headers) echo $(grep "^linux-headers.*.bz2" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 49 *) echo $(grep "^$script_name-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; 47 tcl) echo $(grep "^tcl" $JHALFSDIR/pkg_tarball_list | head -n1 ) 48 ;; 49 linux-headers) 50 if [ "${PROGNAME}" = "lfs" ]; then 51 # Uses kernel headers directly 52 echo $(grep "^linux-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) 53 else 54 # CLFS/CLFS use massaged headers package 55 echo $(grep "^linux-headers-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) 56 fi 57 ;; 58 *) echo $(grep "^$script_name-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) 59 ;; 50 60 esac 51 61 … … 411 421 # Test if the clean must be done. 412 422 if [ "${CLEAN}" = "y" ]; then 413 # Test to make sure we're running the clean as root414 if [ "$UID" != "0" ] ; then415 echo "You must be logged in as root to clean the build directory."416 exit 1417 fi418 423 # Test to make sure that the build directory was populated by jhalfs 419 424 if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then … … 422 427 else 423 428 # Clean the build directory 424 echo -ne "Cleaning $BUILDDIR...\n" 425 rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,tools,cross-tools,usr,var} 426 echo -ne "Cleaning $JHALFSDIR...\n" 427 rm -rf $JHALFSDIR/{0*,1*,envars,sources-dir,*commands,*logs,Makefile,*.xsl,makefile-functions,pkg_tarball_list,*.config,*.sh} 428 echo -ne "Cleaning remainig extracted sources in $BUILDDIR/sources...\n" 429 rm -rf `find $BUILDDIR/sources/* -maxdepth 0 -type d` 430 echo -ne "done\n" 429 echo -n "Cleaning $BUILDDIR ..." 430 sudo rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,tools,cross-tools,usr,var} 431 echo "done" 432 echo -n "Cleaning $JHALFSDIR ..." 433 sudo rm -rf $JHALFSDIR 434 echo "done" 435 echo -n "Cleaning remainig extracted sources in $BUILDDIR/sources ..." 436 sudo rm -rf `find $BUILDDIR/sources/* -maxdepth 0 -type d` 437 echo "done" 431 438 fi 432 439 fi … … 814 821 echo "${TIDY_URL} ${BLFS_SERVER}tidy/${TIDY_PKG} ${TIDY_MD5}" >> urls.lst 815 822 echo "${TIDY_PATCH_URL} ${BLFS_SERVER}tidy/${TIDY_PATCH} ${TIDY_PATCH_MD5}" >> urls.lst 823 echo "${TIDY_DOCS_URL} ${BLFS_SERVER}tidy/${TIDY_DOCS} ${TIDY_DOCS_MD5}" >> urls.lst 816 824 fi 817 825
Note:
See TracChangeset
for help on using the changeset viewer.