Ignore:
Timestamp:
10/07/2006 07:14:47 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
42e1b38
Parents:
f5791f0
Message:

Merged r3147:3173 from trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    rf5791f0 r2ee1d11  
    4545   #
    4646   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         ;;
    5060   esac
    5161
     
    411421  # Test if the clean must be done.
    412422  if [ "${CLEAN}" = "y" ]; then
    413     # Test to make sure we're running the clean as root
    414     if [ "$UID" != "0" ] ; then
    415       echo "You must be logged in as root to clean the build directory."
    416       exit 1
    417     fi
    418423    # Test to make sure that the build directory was populated by jhalfs
    419424    if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then
     
    422427    else
    423428      # 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"
    431438    fi
    432439  fi
     
    814821    echo "${TIDY_URL} ${BLFS_SERVER}tidy/${TIDY_PKG} ${TIDY_MD5}" >> urls.lst
    815822    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
    816824  fi
    817825
Note: See TracChangeset for help on using the changeset viewer.