Changeset 44f88e3


Ignore:
Timestamp:
09/29/2005 06:50:18 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:
07f47df
Parents:
c355ad1
Message:

Be sure that a clean environmentis used for lfs user in chapter05.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dump-commands.xsl

    rc355ad1 r44f88e3  
    4545      <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
    4646        <xsl:text>#!/bin/sh&#xA;&#xA;</xsl:text>
     47        <xsl:if test="sect2[@role='installation'] and
     48            ancestor::chapter[@id='chapter-temporary-tools']">
     49          <xsl:text>cd $PKGDIR &amp;&amp;&#xA;</xsl:text>
     50        </xsl:if>
    4751        <xsl:apply-templates select=".//para/userinput | .//screen"/>
    4852      </exsl:document>
  • jhalfs

    rc355ad1 r44f88e3  
    292292    echo -e "\t\$(call unpack-lfs,$FILE) && \\" >> $MKFILE.tmp
    293293    echo -e "\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp
    294     echo -e "\tcd \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp
     294    echo -e "\tchown -R lfs \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp
     295    echo -e "\techo \"PKGDIR=\$(LFS)\$(SRC)/\$\$ROOT\" > envars && \\" >> $MKFILE.tmp
     296    echo -e "\techo \"export PKGDIR\" >> envars && \\" >> $MKFILE.tmp
    295297  fi
    296298
    297299  # Insert the script run
    298   echo -e "\tsu lfs -c \". /home/lfs/.bashrc && $JHALFSDIR/commands/$file\" && \\" >> $MKFILE.tmp
    299 
    300   # Include a touch of the target name so make can check if it's already been made.
     300  echo -e "\tsu - lfs -c \". /home/lfs/.bashrc && $JHALFSDIR/commands/$file\" && \\" >> $MKFILE.tmp
     301
     302  # Include a touch of the target name so make can check
     303  # if it's already been made.
    301304  echo -e "\ttouch \$@" >> $MKFILE.tmp
     305
     306  # Remove the build directory(ies), including if the build has failed.
     307  if [ "$vrs" != "" ] ; then
     308    echo -e "\trm -r \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp
     309    echo -e "\tif [ -e \$(LFS)\$(SRC)/*-build ]; then \\" >> $MKFILE.tmp
     310    echo -e "\t\t rm -r \$(LFS)\$(SRC)/*-build; \\" >> $MKFILE.tmp
     311    echo -e "\tfi;" >> $MKFILE.tmp
     312  fi
     313
    302314  done
    303315
     
    319331
    320332  # Clean targets
     333  echo "clean:  clean-chapter5 clean-chapter4" >> $MKFILE
     334
    321335  echo "clean-chapter4:" >> $MKFILE
    322336  echo -e "\tuserdel lfs && \\" >> $MKFILE
     
    324338  echo -e "\trm -r \$(LFS)/tools && \\" >> $MKFILE
    325339  echo -e "\trm /tools" >> $MKFILE
    326   echo -e "\trm $JHALFSDIR/02*\n" >> $MKFILE
    327 
    328   # The chapter4 sub-targets are hard-coded to can create the lfs user and
    329   # environment, and to make the scripts executables (as part of 021-addinguser).
     340  echo -e "\trm 02*\n" >> $MKFILE
     341
     342  echo "clean-chapter5:" >> $MKFILE
     343  echo -e "\trm -r \$(LFS)/tools/* && \\" >> $MKFILE
     344  echo -e "\trm -f $chapter5\n" >> $MKFILE
     345
     346  # The chapter4 sub-targets are hard-coded to can create the lfs user,
     347  # to make the scripts executables, and to create a clean environment
     348  # for the lfs user.
    330349  echo "020-creatingtoolsdir:" >> $MKFILE
    331350  echo -e "\tmkdir \$(LFS)/tools && \\" >> $MKFILE
     
    350369  echo -e "\techo \"PATH=/tools/bin:/bin:/usr/bin\" >> /home/lfs/.bashrc && \\" >> $MKFILE
    351370  echo -e "\techo \"export LFS LC_ALL PATH\" >> /home/lfs/.bashrc && \\" >> $MKFILE
     371  # Source the file where we place changing variables.
     372  echo -e "\techo \". $JHALFSDIR/envars\" >> /home/lfs/.bashrc && \\" >> $MKFILE
    352373  echo -e "\tchown lfs /home/lfs/.bash* && \\" >> $MKFILE
     374  echo -e "\ttouch envars && \\" >> $MKFILE
    353375  echo -e "\ttouch \$@\n" >> $MKFILE
    354376
Note: See TracChangeset for help on using the changeset viewer.