- Timestamp:
- 03/28/2006 08:11:42 PM (19 years ago)
- Branches:
- experimental
- Children:
- 64cc345
- Parents:
- 2db0869
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r2db0869 r60b56fd 164 164 165 165 Please format the partition mounted on \$BUILDDIR or set 166 a different build directory before running jha hlfs.166 a different build directory before running jhalfs-X. 167 167 ${OFF} 168 168 ${DD_BORDER} … … 184 184 echo \"Attempting to continue.\" >&2" 185 185 186 HEADER="# This file is automatically generated by jhalfs 186 HEADER="# This file is automatically generated by jhalfs-X 187 187 # DO NOT EDIT THIS FILE MANUALLY 188 188 # … … 209 209 210 210 #----------------------------------# 211 wrt_unpack() { # 211 wrt_unpack() { # Unpack and set 'ROOT' var 212 212 #----------------------------------# 213 213 local FILE=$1 … … 238 238 239 239 #=============================# 240 wrt_unpack3() { # Unpack and set 'ROOT' var240 wrt_unpack3() { # 241 241 #=============================# 242 242 local FILE=$1 … … 266 266 267 267 #----------------------------------# 268 wrt_run_as_su() { # 268 wrt_run_as_su() { # header to log file, execute script, footer to log file 269 269 #----------------------------------# 270 270 local this_script=$1 … … 281 281 282 282 #==================================# 283 wrt_run_as_lfs() { # header to log file, execute script, footer to log file283 wrt_run_as_lfs() { # 284 284 #==================================# 285 285 local this_script=$1 … … 311 311 312 312 #=============================# 313 wrt_run_as_root2() { # Some scripts must be run as root..313 wrt_run_as_root2() { # Some scripts must be run as root.. 314 314 #=============================# 315 315 local this_script=$1 … … 433 433 # Test to make sure we're running the build as root 434 434 if [ "$UID" != "0" ] ; then 435 echo "You must be logged in as root to successfully build LFS."435 echo "You must be logged in as root to successfully build the system." 436 436 exit 1 437 437 fi 438 438 # Build the system 439 439 if [ -e $MKFILE ] ; then 440 echo -ne "Building the LFSsystem...\n"440 echo -ne "Building the system...\n" 441 441 cd $JHALFSDIR && make -f ${PROGNAME}-Makefile 442 442 echo -ne "done\n" … … 458 458 # Test to make sure that the build directory was populated by jhalfs 459 459 if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then 460 echo "Looks like $BUILDDIR was not populated by a previous jhalfs run."460 echo "Looks like $BUILDDIR was not populated by a previous jhalfs-X run." 461 461 exit 1 462 462 else … … 492 492 exit 1 ;; 493 493 esac 494 # Grab a fresh LFSbook if it's missing, otherwise, update it from the494 # Grab a fresh book if it's missing, otherwise, update it from the 495 495 # repo. If we've already extracted the commands, move on to getting the 496 496 # sources. … … 513 513 else 514 514 case $LFSVRS in 515 515 development) 516 516 svn co $SVN/${svn_root}/trunk/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;; 517 517 alphabetical) 518 518 svn co $SVN/${svn_root}/branches/$LFSVRS/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;; 519 519 udev_update) 520 520 svn co $SVN/LFS/branches/$LFSVRS/BOOK lfs-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;; 521 521 esac … … 552 552 case ${PROGNAME} in 553 553 hlfs) 554 echo -n "Creating the ${L_arrow}${BOLD}HLFS${R_arrow} specific patcheslist_.wgetfile"554 echo -n "Creating the HLFS ${L_arrow}${BOLD}$MODEL${R_arrow} specific patches file" 555 555 xsltproc --nonet \ 556 556 --xinclude \ … … 568 568 569 569 clfs) # Pull out a list of arch specific patches 570 echo -n "Creating CLFS ${L_arrow}${BOLD}$ARCH${R_arrow} specific patches list_.wgetfile"570 echo -n "Creating CLFS ${L_arrow}${BOLD}$ARCH${R_arrow} specific patches file" 571 571 xsltproc -xinclude \ 572 572 -o patcheslist_.wget \ … … 587 587 -e 's/uclibc/uClibc/'` 588 588 done 589 590 rm -f patcheslist_.wget 589 591 590 592 echo " ...OK" … … 627 629 ;; 628 630 hlfs) 629 echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS architecture"631 echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS libc implementation" 630 632 xsltproc --nonet \ 631 633 --xinclude \ … … 699 701 # We only want a list arch specific files.. 700 702 # Unfortunately this script produces URL's which must be converted to a std format 701 echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packages list_.wgetfile"703 echo -n "Creating CLFS ${L_arrow}${BOLD}${ARCH}${R_arrow} specific packages file" 702 704 xsltproc -xinclude \ 703 705 -o packageslist_.wget \ … … 720 722 -e 's/"//g'` 721 723 done 724 725 rm -f packageslist_.wget packages.tmp 726 722 727 echo " ...OK" 723 728 ;; 724 729 725 730 hlfs) 726 echo -n "Creating <${PROGNAME}> specific packages list_.wgetfile"731 echo -n "Creating <${PROGNAME}> specific packages file" 727 732 grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \ 728 733 -e 's@">@"@' \ … … 732 737 733 738 lfs) 734 echo -n "Creating <${PROGNAME}> specific packages list_.wgetfile"739 echo -n "Creating <${PROGNAME}> specific packages file" 735 740 grep "\-version" $BOOK/general.ent | sed -e 's@<!ENTITY @@' \ 736 741 -e 's@">@"@' \ … … 747 752 fi 748 753 749 # There is no useful patches.ent file so we will create one.754 # Create the patches file 750 755 case "${PROGNAME}" in 751 756 hlfs) … … 862 867 VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'` 863 868 case $PKG in 864 869 tcl) FILE="$PKG$VRS-src.tar.bz2" ;; 865 870 vim-lang) PKG="vim" 866 871 FILE="vim-$VRS-lang.tar.bz2" ;; 867 872 udev-config) PKG="udev" 868 873 FILE="$VRS" ;; 869 874 *) FILE="$PKG-$VRS.tar.bz2" ;; 870 875 esac 871 876 download $PKG $FILE
Note:
See TracChangeset
for help on using the changeset viewer.