Changeset d310939
- Timestamp:
- 10/02/2005 09:14:02 AM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 3cfe871
- Parents:
- 71642ef
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dump-commands.xsl
r71642ef rd310939 62 62 <xsl:apply-templates select="userinput" mode="screen"/> 63 63 <xsl:if test="position() != last() and 64 not(contains(string(),'EOF'))"> 64 not(contains(string(),'EOF')) and 65 not(contains(string(),'check')) and 66 not(ancestor::sect1[@id='ch-tools-stripping'])"> 65 67 <xsl:text> &&</xsl:text> 66 68 </xsl:if> … … 72 74 73 75 <xsl:template match="para/userinput"> 74 <xsl:if test="$testsuite = '0' and (contains(string(),'test') or76 <xsl:if test="$testsuite != '0' and (contains(string(),'test') or 75 77 contains(string(),'check'))"> 76 78 <xsl:value-of select="substring-before(string(),'make')"/> 77 79 <xsl:text>make -k</xsl:text> 78 80 <xsl:value-of select="substring-after(string(),'make')"/> 79 <xsl:text> & amp;&
</xsl:text>81 <xsl:text> 
</xsl:text> 80 82 </xsl:if> 81 83 </xsl:template> -
jhalfs
r71642ef rd310939 23 23 -D, --download-client=CLIENT use CLIENT as the program for retrieving 24 24 packages 25 -T, --no-testsuites don't run the package's testsuites 26 -P, --have-packages don't download the packages 25 -T, --testsuites run the optional testsuites 26 -P, --get-packages download the packages 27 -M, --run-make run make on the generated Makefile 27 28 " 28 29 … … 80 81 ;; 81 82 82 --no-testsuites | -T ) 83 shift 83 --testsuites | -T ) 84 84 TEST=1 85 85 shift 86 86 ;; 87 87 88 --have-packages | -P ) 89 shift 88 --get-packages | -P ) 90 89 HPKG=1 90 shift 91 ;; 92 93 --run-make | -M ) 94 RUNMAKE=1 91 95 shift 92 96 ;; … … 231 235 232 236 # Test if the packages must be downloaded 233 if [ -z $HPKG] ; then237 if [ "$HPKG" = "1" ] ; then 234 238 235 239 # This variable is necessary to make sure the `cat $JHALFSDIR/packages` … … 310 314 fi 311 315 312 # Dump the path to the Binutils and TCL sources313 if [ "$i" = "027-binutils-pass1" -o "$i" = "032-tcl" ] ; then316 # Dump the path to the Binutils or TCL sources directory. 317 if [ "$i" = "027-binutils-pass1" -o "$i" = "032-tcl" -o "$i" = "036-binutils-pass2" ] ; then 314 318 echo -e "\techo \"\$(LFS)\$(SRC)/\$\$ROOT\" > sources-dir && \\" >> $MKFILE.tmp 315 319 fi … … 320 324 # For the Adjusting phase we must to cd to the binutils-build directory. 321 325 if [ "$i" = "031-adjusting" ] ; then 322 echo -e "\techo \"PKGDIR=\ `cat sources-dir\`\" > envars && \\" >> $MKFILE.tmp326 echo -e "\techo \"PKGDIR=\$(LFS)\$(SRC)/binutils-build\" > envars && \\" >> $MKFILE.tmp 323 327 echo -e "\techo \"export PKGDIR\" >> envars && \\" >> $MKFILE.tmp 324 328 fi … … 341 345 342 346 # Remove the build directory(ies) even if the package build fails, except for 343 # Binutils pass1and TCL. In that cases the sources directories are removed347 # Binutils and TCL. In that cases the sources directories are removed 344 348 # only if the build fails. 345 349 if [ "$vrs" != "" ] ; then 346 if [ "$i" != "027-binutils-pass1" ] && [ "$i" != "032-tcl" ] ; then350 if [ "$i" != "027-binutils-pass1" ] && [ "$i" != "032-tcl" ] && [ "$i" != "036-binutils-pass2" ] ; then 347 351 echo -e "\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 348 352 echo -e "\trm -r \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp 349 echo -e "\tif [ -e \$(LFS)\$(SRC)/ *-build ]; then \\" >> $MKFILE.tmp350 echo -e "\t\trm -r \$(LFS)\$(SRC)/ *-build; \\" >> $MKFILE.tmp353 echo -e "\tif [ -e \$(LFS)\$(SRC)/$name-build ]; then \\" >> $MKFILE.tmp 354 echo -e "\t\trm -r \$(LFS)\$(SRC)/$name-build; \\" >> $MKFILE.tmp 351 355 echo -e "\tfi;" >> $MKFILE.tmp 352 356 fi 353 357 fi 354 if [ "$i" = "027-binutils-pass1" -o "$i" = "03 2-tcl" ] ; then358 if [ "$i" = "027-binutils-pass1" -o "$i" = "036-binutils-pass2" ] ; then 355 359 echo -e "\tif [ ! -e \$@ ] ; then \\" >> $MKFILE.tmp 356 360 echo -e "\t\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 357 361 echo -e "\t\trm -r \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp 358 echo -e "\t\tif [ -e \$(LFS)\$(SRC)/*-build ]; then \\" >> $MKFILE.tmp 359 echo -e "\t\t\trm -r \$(LFS)\$(SRC)/*-build; \\" >> $MKFILE.tmp 360 echo -e "\t\tfi;" >> $MKFILE.tmp 362 echo -e "\t\trm -r \$(LFS)\$(SRC)/binutils-build; \\" >> $MKFILE.tmp 361 363 echo -e "\tfi;" >> $MKFILE.tmp 362 364 fi 363 364 # Remove the Binutils sources after a sucessfull adjusting phase. 365 if [ "$i" = "032-tcl" ] ; then 366 echo -e "\tif [ ! -e \$@ ] ; then \\" >> $MKFILE.tmp 367 echo -e "\t\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 368 echo -e "\t\trm -r \$(LFS)\$(SRC)/\$\$ROOT; \\" >> $MKFILE.tmp 369 echo -e "\tfi;" >> $MKFILE.tmp 370 fi 371 372 # Remove the Binutils pass 1 sources after a sucessfull Adjusting phase. 365 373 if [ "$i" = "031-adjusting" ] ; then 366 374 echo -e "\tif [ -e \$@ ] ; then \\" >> $MKFILE.tmp 367 375 echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp 368 echo -e "\t\trm -r \$(LFS)\$(SRC)/binutils-build ;&& \\" >> $MKFILE.tmp369 echo -e "\t\trm sources-dir &&\\" >> $MKFILE.tmp376 echo -e "\t\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp 377 echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp 370 378 echo -e "\tfi;" >> $MKFILE.tmp 371 379 fi … … 375 383 echo -e "\tif [ -e \$@ ] ; then \\" >> $MKFILE.tmp 376 384 echo -e "\t\trm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp 377 echo -e "\t\trm sources-dir &&\\" >> $MKFILE.tmp385 echo -e "\t\trm sources-dir; \\" >> $MKFILE.tmp 378 386 echo -e "\tfi;" >> $MKFILE.tmp 379 387 fi … … 460 468 461 469 run_make() { 462 # Build the system 463 if [ -e $MKFILE ] ; then 464 echo -ne "Building the LFS system\n" 465 cd $JHALFSDIR && make 466 echo -ne "done\n" 470 # Test if make must be run. 471 if [ "$RUNMAKE" = "1" ] ; then 472 # Build the system 473 if [ -e $MKFILE ] ; then 474 echo -ne "Building the LFS system\n" 475 cd $JHALFSDIR && make 476 echo -ne "done\n" 477 fi 467 478 fi 468 479 }
Note:
See TracChangeset
for help on using the changeset viewer.