Changeset 7bbd436


Ignore:
Timestamp:
10/03/2005 06:28:57 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:
816f3f43
Parents:
fc8de49
Message:

Fixed the retainig of Binutils and TCL sources directories.
Removed some now uneeded "if" test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    rfc8de49 r7bbd436  
    372372    # Everything else, add a true statment so we don't confuse make
    373373    else
    374         echo -e "\ttrue" >> $MKFILE.tmp
     374      echo -e "\ttrue" >> $MKFILE.tmp
    375375    fi
    376376
     
    396396      fi
    397397    fi
     398
     399    # Remove the Binutils pass 1 sources after a successful Adjusting phase.
     400    if [ "$i" = "031-adjusting" ] ; then
     401      echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
     402      echo -e "\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp
     403      echo -e "\trm sources-dir; \\" >> $MKFILE.tmp
     404    fi
     405
     406    # Remove the TCL sources after a successful Expect build.
     407    if [ "$i" = "033-expect" ] ; then
     408      echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
     409      echo -e "\trm sources-dir; \\" >> $MKFILE.tmp
     410    fi
     411
     412    # Include a touch of the target name so make can check
     413    # if it's already been made.
     414    echo -e "\t@touch \$@" >> $MKFILE.tmp
     415
     416    # The next two "if" must be after the touch to can check if the sources
     417    # directories should be retained or deleted.
    398418    if [ "$i" = "027-binutils-pass1" -o "$i" = "036-binutils-pass2" ] ; then
    399419      echo -e "\t@if [ ! -e \$@ ] ; then \\" >> $MKFILE.tmp
     
    409429      echo -e "\tfi;" >> $MKFILE.tmp
    410430    fi
    411 
    412     # Remove the Binutils pass 1 sources after a successful Adjusting phase.
    413     if [ "$i" = "031-adjusting" ] ; then
    414       echo -e "\t@if [ -e \$@ ] ; then \\" >> $MKFILE.tmp
    415       echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
    416       echo -e "\t\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp
    417       echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp
    418       echo -e "\tfi;" >> $MKFILE.tmp
    419     fi
    420 
    421     # Remove the TCL sources after a successful Expect build.
    422     if [ "$i" = "033-expect" ] ; then
    423       echo -e "\t@if [ -e \$@ ] ; then \\" >> $MKFILE.tmp
    424       echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
    425       echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp
    426       echo -e "\tfi;" >> $MKFILE.tmp
    427     fi
    428 
    429     # Include a touch of the target name so make can check
    430     # if it's already been made.
    431     echo -e "\t@touch \$@" >> $MKFILE.tmp
    432431
    433432    # Keep the script file name for Makefile dependencies.
     
    506505    # Remove the Binutils pass 2 sources after a successful Re-Adjusting phase.
    507506    if [ "$i" = "067-readjusting" ] ; then
    508       echo -e "\t@if [ -e \$@ ] ; then \\" >> $MKFILE.tmp
    509       echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
    510       echo -e "\t\trm -r \$(SRC)/binutils-build && \\" >> $MKFILE.tmp
    511       echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp
    512       echo -e "\tfi;" >> $MKFILE.tmp
     507      echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp
     508      echo -e "\trm -r \$(SRC)/binutils-build && \\" >> $MKFILE.tmp
     509      echo -e "\trm sources-dir; \\" >> $MKFILE.tmp
    513510    fi
    514511
     
    534531  for file in chapter06/*chroot* ; do
    535532    chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \
    536         -e 's/  */ /g' -e 's|\\$|&&|g' -e 's|$| -c|'`
     533      -e 's/  */ /g' -e 's|\\$|&&|g' -e 's|$| -c|'`
    537534    echo -e "CHROOT$i= $chroot\n" >> $MKFILE
    538535    i=`expr $i + 1`
Note: See TracChangeset for help on using the changeset viewer.