Changeset 0ac273e
- Timestamp:
- 03/18/2006 02:30:43 PM (19 years ago)
- Branches:
- experimental
- Children:
- c0cbd50
- Parents:
- 582feec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
HLFS/master.sh
r582feec r0ac273e 417 417 # password, edit several files and setup Grub. 418 418 case $this_script in 419 *usage) continue ;; # Contains example commands 419 420 *grub) continue ;; 420 421 *reboot) continue ;; … … 424 425 # If no .config file is supplied, the kernel build is skipped 425 426 [[ -z $CONFIG ]] && continue 426 # How does Manuel add this string to the file..427 sed 's|cd \$PKGDIR.*||' -i chapter07/$this_script428 # You cannot run menuconfig from within the makefile429 sed 's|make menuconfig|make oldconfig|' -i chapter07/$this_script430 427 # The files in the conglomeration dir are xxx.bz2 428 # What if the user download the original file? 431 429 sed 's|.patch.gz|.patch.bz2|' -i chapter07/$this_script 432 430 sed 's|gunzip|bunzip2|' -i chapter07/$this_script 433 # If defined include the keymap in the kernel434 if [[ -n "$KEYMAP" ]]; then435 sed "s|^loadkeys -m.*>|loadkeys -m $KEYMAP >|" -i chapter07/$this_script436 else437 sed '/loadkeys -m/d' -i chapter07/$this_script438 sed '/drivers\/char/d' -i chapter07/$this_script439 fi440 ;;441 *usage) # The script bombs, disable error trapping442 sed 's|set -e|set +e|' -i chapter07/$this_script443 ;;444 *profile) # Add the config values to the script445 sed "s|LC_ALL=\*\*EDITME.*EDITME\*\*|LC_ALL=$LC_ALL|" -i chapter07/$this_script446 sed "s|LANG=\*\*EDITME.*EDITME\*\*|LANG=$LANG|" -i chapter07/$this_script447 431 ;; 448 432 esac … … 463 447 vrs=`grep "^lfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'` 464 448 FILE="lfs-bootscripts-$vrs.tar.*" 465 # The bootscript pkg references both lfs AND blfs bootscripts...466 # see XML script for other additions to bootscripts file467 # PATCH468 vrs=`grep "^blfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`469 sed "s|make install$|make install; cd ../blfs-bootscripts-$vrs|" -i chapter07/$this_script470 449 wrt_unpack2 "$FILE" 471 450 ( … … 571 550 ( 572 551 cat << EOF 573 all: chapter 4chapter5 chapter6 chapter7552 all: chapter3 chapter5 chapter6 chapter7 574 553 @\$(call echo_finished,$VERSION) 575 554 576 chapter 4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment577 578 chapter5: chapter 4 $chapter5 restore-hlfs-env555 chapter3: 020-creatingtoolsdir 021-addinguser 022-settingenvironment 556 557 chapter5: chapter3 $chapter5 restore-lfs-env 579 558 580 559 chapter6: chapter5 $chapter6 … … 583 562 584 563 clean-all: clean 585 rm -rf ./{hlfs-commands,logs,Makefile, dump-hlfs-scripts.xsl,functions,packages,patches}586 587 clean: clean-chapter7 clean-chapter6 clean-chapter5 clean-chapter 4588 589 clean-chapter 4:590 -if [ ! -f user- hlfs-exist ]; then \\591 userdel hlfs; \\592 rm -rf /home/ hlfs; \\564 rm -rf ./{hlfs-commands,logs,Makefile,hlfs.xsl,patcheslist.xsl,functions,packages,patches} 565 566 clean: clean-chapter7 clean-chapter6 clean-chapter5 clean-chapter3 567 568 clean-chapter3: 569 -if [ ! -f user-lfs-exist ]; then \\ 570 userdel lfs; \\ 571 rm -rf /home/lfs; \\ 593 572 fi; 594 573 rm -rf \$(MOUNT_PT)/tools 595 574 rm -f /tools 596 rm -f envars user- hlfs-exist575 rm -f envars user-lfs-exist 597 576 rm -f 02* logs/02*.log 598 577 599 578 clean-chapter5: 600 579 rm -rf \$(MOUNT_PT)/tools/* 601 rm -f $chapter5 restore- hlfs-env sources-dir580 rm -f $chapter5 restore-lfs-env sources-dir 602 581 cd logs && rm -f $chapter5 && cd .. 603 582 … … 616 595 cd logs && rm -f $chapter7 && cd .. 617 596 618 restore- hlfs-env:597 restore-lfs-env: 619 598 @\$(call echo_message, Building) 620 599 @if [ -f /home/lfs/.bashrc.XXX ]; then \\ … … 635 614 echo "done" 636 615 } 637 638
Note:
See TracChangeset
for help on using the changeset viewer.