Changeset 0ac273e


Ignore:
Timestamp:
03/18/2006 02:30:43 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
c0cbd50
Parents:
582feec
Message:

Finished the review of master.sh to match current XSL code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    r582feec r0ac273e  
    417417    # password, edit several files and setup Grub.
    418418    case $this_script in
     419      *usage)   continue  ;; # Contains example commands
    419420      *grub)    continue  ;;
    420421      *reboot)  continue  ;;
     
    424425          # If no .config file is supplied, the kernel build is skipped
    425426        [[ -z $CONFIG ]] && continue
    426           # How does Manuel add this string to the file..
    427         sed 's|cd \$PKGDIR.*||'         -i chapter07/$this_script
    428           # You cannot run menuconfig from within the makefile
    429         sed 's|make menuconfig|make oldconfig|' -i chapter07/$this_script
    430427          # The files in the conglomeration dir are xxx.bz2
     428          # What if the user download the original file?
    431429        sed 's|.patch.gz|.patch.bz2|'   -i chapter07/$this_script
    432430        sed 's|gunzip|bunzip2|'         -i chapter07/$this_script
    433           # If defined include the keymap in the kernel
    434         if [[ -n "$KEYMAP" ]]; then
    435           sed "s|^loadkeys -m.*>|loadkeys -m $KEYMAP >|" -i chapter07/$this_script
    436         else
    437           sed '/loadkeys -m/d'          -i chapter07/$this_script
    438           sed '/drivers\/char/d'        -i chapter07/$this_script
    439         fi
    440          ;;
    441       *usage)   # The script bombs, disable error trapping
    442         sed 's|set -e|set +e|'  -i chapter07/$this_script
    443          ;;
    444       *profile) # Add the config values to the script
    445         sed "s|LC_ALL=\*\*EDITME.*EDITME\*\*|LC_ALL=$LC_ALL|" -i chapter07/$this_script
    446         sed "s|LANG=\*\*EDITME.*EDITME\*\*|LANG=$LANG|"       -i chapter07/$this_script
    447431         ;;
    448432    esac
     
    463447      vrs=`grep "^lfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    464448      FILE="lfs-bootscripts-$vrs.tar.*"
    465       # The bootscript pkg references both lfs AND blfs bootscripts...
    466       #  see XML script for other additions to bootscripts file
    467       # PATCH
    468       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_script
    470449      wrt_unpack2 "$FILE"
    471450(
     
    571550(
    572551  cat << EOF
    573 all:  chapter4 chapter5 chapter6 chapter7
     552all:  chapter3 chapter5 chapter6 chapter7
    574553        @\$(call echo_finished,$VERSION)
    575554
    576 chapter4:  020-creatingtoolsdir 021-addinguser 022-settingenvironment
    577 
    578 chapter5:  chapter4 $chapter5 restore-hlfs-env
     555chapter3:  020-creatingtoolsdir 021-addinguser 022-settingenvironment
     556
     557chapter5:  chapter3 $chapter5 restore-lfs-env
    579558
    580559chapter6:  chapter5 $chapter6
     
    583562
    584563clean-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-chapter4
    588 
    589 clean-chapter4:
    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
     566clean:  clean-chapter7 clean-chapter6 clean-chapter5 clean-chapter3
     567
     568clean-chapter3:
     569        -if [ ! -f user-lfs-exist ]; then \\
     570                userdel lfs; \\
     571                rm -rf /home/lfs; \\
    593572        fi;
    594573        rm -rf \$(MOUNT_PT)/tools
    595574        rm -f /tools
    596         rm -f envars user-hlfs-exist
     575        rm -f envars user-lfs-exist
    597576        rm -f 02* logs/02*.log
    598577
    599578clean-chapter5:
    600579        rm -rf \$(MOUNT_PT)/tools/*
    601         rm -f $chapter5 restore-hlfs-env sources-dir
     580        rm -f $chapter5 restore-lfs-env sources-dir
    602581        cd logs && rm -f $chapter5 && cd ..
    603582
     
    616595        cd logs && rm -f $chapter7 && cd ..
    617596
    618 restore-hlfs-env:
     597restore-lfs-env:
    619598        @\$(call echo_message, Building)
    620599        @if [ -f /home/lfs/.bashrc.XXX ]; then \\
     
    635614  echo "done"
    636615}
    637 
    638 
Note: See TracChangeset for help on using the changeset viewer.