Changeset 1f1d6a1


Ignore:
Timestamp:
10/14/2005 08:24:22 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
50408d5
Parents:
3e67a77
Message:

Removed harcoded build order numbers.
Thanks to Alexander E. Patrakov for pointing the issue
and David Fix for their suggestion about how to fix it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r3e67a77 r1f1d6a1  
    455455
    456456    # Dump the path to the Binutils or TCL sources directory.
    457     if [ "$i" = "027-binutils-pass1" -o "$i" = "032-tcl" -o "$i" = "036-binutils-pass2" ] ; then
     457    if [ ${i:4:8} = "binutils" -o ${i:4:3} = "tcl" ] ; then
    458458(
    459459    cat << EOF
     
    463463
    464464    # For the Adjusting phase we must to cd to the binutils-build directory.
    465     elif [ "$i" = "031-adjusting" ] ; then
     465    elif [ ${i:4:9} = "adjusting" ] ; then
    466466(
    467467    cat << EOF
     
    472472
    473473    # For the Expect build we need to set the TCLPATH envar.
    474     elif [ "$i" = "033-expect" ] ; then
     474    elif [ ${i:4:6} = "expect" ] ; then
    475475(
    476476    cat << EOF
     
    503503    # For Binutils and TCL the sources must be retained some time.
    504504    if [ "$vrs" != "" ] ; then
    505       if [ "$i" != "027-binutils-pass1" ] && [ "$i" != "032-tcl" ] && [ "$i" != "036-binutils-pass2" ] ; then
     505      if [ ${i:4:8} != "binutils" ] && [ ${i:4:3} != "tcl" ] ; then
    506506(
    507507    cat << EOF
     
    517517
    518518    # Remove the Binutils pass 1 sources after a successful Adjusting phase.
    519     if [ "$i" = "031-adjusting" ] ; then
     519    if [ ${i:4:9} = "adjusting" ] ; then
    520520(
    521521    cat << EOF
     
    528528
    529529    # Remove the TCL sources after a successful Expect build.
    530     if [ "$i" = "033-expect" ] ; then
     530    if [ ${i:4:6} = "expect" ] ; then
    531531(
    532532    cat << EOF
     
    565565    # Grab the name of the target
    566566    name=`echo $i | sed -e 's@[0-9]\{3\}-@@'`
    567 
    568     # Set the dependency for the first target.
    569     if [ -z $PREV ] ; then PREV=055-stripping ; fi
    570567
    571568    # Drop in the name of the target on a new line, and the previous target
     
    598595
    599596    # For the Re-Adjusting phase we must to cd to the binutils-build directory.
    600     if [ "$i" = "067-readjusting" ] ; then
     597    if [ ${i:4:11} = "readjusting" ] ; then
    601598(
    602599    cat << EOF
     
    608605
    609606    # For Glibc we need to set TIMEZONE envar.
    610     if [ "$i" = "066-glibc" ] ; then
     607    if [ ${i:4:5} = "glibc" ] ; then
    611608(
    612609    cat << EOF
     
    618615
    619616    # For Groff we need to set PAGE envar.
    620     if [ "$i" = "082-groff" ] ; then
     617    if [ ${i:4:5} = "groff" ] ; then
    621618(
    622619    cat << EOF
     
    629626    # In the mount of kernel filesystems we need to set LFS
    630627    # and not to use chroot.
    631     if [ "$i" = "057-kernfs" ] ; then
     628    if [ ${i:4:6} = "kernfs" ] ; then
    632629(
    633630    cat << EOF
     
    664661
    665662    # Remove the Binutils pass 2 sources after a successful Re-Adjusting phase.
    666     if [ "$i" = "067-readjusting" ] ; then
     663    if [ ${i:4:11} = "readjusting" ] ; then
    667664(
    668665    cat << EOF
     
    711708    chapter789="$chapter789 $i"
    712709
    713     # Set the dependency for the first target.
    714     if [ -z $PREV ] ; then PREV=116-strippingagain ; fi
    715 
    716710    # Drop in the name of the target on a new line, and the previous target
    717711    # as a dependency. Also call the echo_message function.
     
    725719
    726720    # Find the the bootscripts and kernel package names
    727     if [ "$i" = "119-bootscripts" -o "$i" = "132-kernel" ] ; then
    728       if [ "$i" = "119-bootscripts" ] ; then
     721    if [ ${i:4:11} = "bootscripts" -o ${i:4:6} = "kernel" ] ; then
     722      if [ ${i:4:11} = "bootscripts" ] ; then
    729723        vrs=`grep "^lfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    730724        FILE="lfs-bootscripts-$vrs.tar.bz2"
    731       elif [ "$i" = "132-kernel" ] ; then
     725      elif [ ${i:4:6} = "kernel" ] ; then
    732726        vrs=`grep "^linux-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    733727        FILE="linux-$vrs.tar.bz2"
     
    744738   
    745739    # Put in place the kernel .config file
    746     if [ "$i" = "132-kernel" ] ; then
     740    if [ ${i:4:6} = "kernel" ] ; then
    747741(
    748742    cat << EOF
     
    762756
    763757    # Remove the build directory except if the package build fails.
    764     if [ "$i" = "119-bootscripts" -o "$i" = "132-kernel" ] ; then
     758    if [ ${i:4:11} = "bootscripts" -o ${i:4:6} = "kernel" ] ; then
    765759(
    766760    cat << EOF
Note: See TracChangeset for help on using the changeset viewer.