Changeset 44f88e3
- Timestamp:
- 09/29/2005 06:50:18 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 07f47df
- Parents:
- c355ad1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dump-commands.xsl
rc355ad1 r44f88e3 45 45 <exsl:document href="{$dirname}/{$order}-{$filename}" method="text"> 46 46 <xsl:text>#!/bin/sh

</xsl:text> 47 <xsl:if test="sect2[@role='installation'] and 48 ancestor::chapter[@id='chapter-temporary-tools']"> 49 <xsl:text>cd $PKGDIR &&
</xsl:text> 50 </xsl:if> 47 51 <xsl:apply-templates select=".//para/userinput | .//screen"/> 48 52 </exsl:document> -
jhalfs
rc355ad1 r44f88e3 292 292 echo -e "\t\$(call unpack-lfs,$FILE) && \\" >> $MKFILE.tmp 293 293 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 295 297 fi 296 298 297 299 # 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. 301 304 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 302 314 done 303 315 … … 319 331 320 332 # Clean targets 333 echo "clean: clean-chapter5 clean-chapter4" >> $MKFILE 334 321 335 echo "clean-chapter4:" >> $MKFILE 322 336 echo -e "\tuserdel lfs && \\" >> $MKFILE … … 324 338 echo -e "\trm -r \$(LFS)/tools && \\" >> $MKFILE 325 339 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. 330 349 echo "020-creatingtoolsdir:" >> $MKFILE 331 350 echo -e "\tmkdir \$(LFS)/tools && \\" >> $MKFILE … … 350 369 echo -e "\techo \"PATH=/tools/bin:/bin:/usr/bin\" >> /home/lfs/.bashrc && \\" >> $MKFILE 351 370 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 352 373 echo -e "\tchown lfs /home/lfs/.bash* && \\" >> $MKFILE 374 echo -e "\ttouch envars && \\" >> $MKFILE 353 375 echo -e "\ttouch \$@\n" >> $MKFILE 354 376
Note:
See TracChangeset
for help on using the changeset viewer.