- Timestamp:
- 10/04/2005 06:37:09 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 80c00fc
- Parents:
- 7450da3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jhalfs
r7450da3 r3f990d1 328 328 # Drop in the name of the target on a new line, and the previous target 329 329 # as a dependency. Also call the echo_message function. 330 echo -e "\n$i: $PREV" >> $MKFILE.tmp 331 echo -e "\t@\$(call echo_message, Building)" >> $MKFILE.tmp 330 ( 331 cat << EOF 332 333 $i: $PREV 334 @\$(call echo_message, Building) 335 EOF 336 ) >> $MKFILE.tmp 332 337 333 338 # Find the version of the command files, if it corresponds with the building of … … 345 350 # Insert instructions for unpacking the package and to set 346 351 # the PKGDIR variable. 347 echo -e "\t@\$(call unpack,$FILE)" >> $MKFILE.tmp 348 echo -e "\t@ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 349 echo -e "\tchown -R lfs \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp 350 echo -e "\techo \"PKGDIR=\$(LFS)\$(SRC)/\$\$ROOT\" > envars && \\" >> $MKFILE.tmp 351 echo -e "\techo \"export PKGDIR\" >> envars && \\" >> $MKFILE.tmp 352 ( 353 cat << EOF 354 @\$(call unpack,$FILE) 355 @ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\ 356 chown -R lfs \$(LFS)\$(SRC)/\$\$ROOT && \\ 357 echo "PKGDIR=\$(LFS)\$(SRC)/\$\$ROOT" > envars && \\ 358 echo "export PKGDIR" >> envars && \\ 359 EOF 360 ) >> $MKFILE.tmp 361 352 362 fi 353 363 354 364 # Dump the path to the Binutils or TCL sources directory. 355 365 if [ "$i" = "027-binutils-pass1" -o "$i" = "032-tcl" -o "$i" = "036-binutils-pass2" ] ; then 356 echo -e "\techo \"\$(LFS)\$(SRC)/\$\$ROOT\" > sources-dir" >> $MKFILE.tmp 366 ( 367 cat << EOF 368 echo "\$(LFS)\$(SRC)/\$\$ROOT" > sources-dir 369 EOF 370 ) >> $MKFILE.tmp 357 371 358 372 # For the Adjusting phase we must to cd to the binutils-build directory. 359 373 elif [ "$i" = "031-adjusting" ] ; then 360 echo -e "\t@echo \"PKGDIR=\$(LFS)\$(SRC)/binutils-build\" > envars && \\" >> $MKFILE.tmp 361 echo -e "\techo \"export PKGDIR\" >> envars" >> $MKFILE.tmp 374 ( 375 cat << EOF 376 @echo "PKGDIR=\$(LFS)\$(SRC)/binutils-build" > envars && \\ 377 echo "export PKGDIR" >> envars 378 EOF 379 ) >> $MKFILE.tmp 362 380 363 381 # For the Expect build we need to set the TCLPATH envar. 364 382 elif [ "$i" = "033-expect" ] ; then 365 echo -e "\techo \"TCLPATH=\`cat sources-dir\`\" >> envars && \\" >> $MKFILE.tmp 366 echo -e "\techo \"export TCLPATH\" >> envars" >> $MKFILE.tmp 383 ( 384 cat << EOF 385 echo "TCLPATH=\`cat sources-dir\`" >> envars && \\ 386 echo "export TCLPATH" >> envars 387 EOF 388 ) >> $MKFILE.tmp 367 389 368 390 # Everything else, add a true statment so we don't confuse make 369 391 else 370 echo -e "\ttrue" >> $MKFILE.tmp 371 fi 372 373 # Insert date and disk usage at the top of the log file. 374 echo -e "\t@echo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\\\n\" >logs/$i && \\" >> $MKFILE.tmp 375 376 # Insert the script run 377 echo -e "\tsu - lfs -c \". /home/lfs/.bashrc && $JHALFSDIR/commands/$file\" >>logs/$i 2>&1 && \\" >> $MKFILE.tmp 378 379 # Insert date and disk usage at the bottom of the log file. 380 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\\\n\" >>logs/$i" >> $MKFILE.tmp 392 ( 393 cat << EOF 394 true 395 EOF 396 ) >> $MKFILE.tmp 397 fi 398 399 # Insert date and disk usage at the top of the log file, the script run 400 # and date and disk usage again at the bottom of the log file. 401 ( 402 cat << EOF 403 @echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\n" >logs/$i && \\ 404 su - lfs -c "source /home/lfs/.bashrc && $JHALFSDIR/commands/$file" >>logs/$i 2>&1 && \\ 405 echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\n" >>logs/$i 406 EOF 407 ) >> $MKFILE.tmp 381 408 382 409 # Remove the build directory(ies) even if the package build fails, except for … … 385 412 if [ "$vrs" != "" ] ; then 386 413 if [ "$i" != "027-binutils-pass1" ] && [ "$i" != "032-tcl" ] && [ "$i" != "036-binutils-pass2" ] ; then 387 echo -e "\t@ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 388 echo -e "\trm -r \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp 389 echo -e "\tif [ -e \$(LFS)\$(SRC)/$name-build ]; then \\" >> $MKFILE.tmp 390 echo -e "\t\trm -r \$(LFS)\$(SRC)/$name-build; \\" >> $MKFILE.tmp 391 echo -e "\tfi;" >> $MKFILE.tmp 414 ( 415 cat << EOF 416 @ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\ 417 rm -r \$(LFS)\$(SRC)/\$\$ROOT && \\ 418 if [ -e \$(LFS)\$(SRC)/$name-build ]; then \\ 419 rm -r \$(LFS)\$(SRC)/$name-build; \\ 420 fi; 421 EOF 422 ) >> $MKFILE.tmp 392 423 fi 393 424 fi … … 395 426 # Remove the Binutils pass 1 sources after a successful Adjusting phase. 396 427 if [ "$i" = "031-adjusting" ] ; then 397 echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp 398 echo -e "\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp 399 echo -e "\trm sources-dir" >> $MKFILE.tmp 428 ( 429 cat << EOF 430 @rm -r \`cat sources-dir\` && \\ 431 rm -r \$(LFS)\$(SRC)/binutils-build && \\ 432 rm sources-dir 433 EOF 434 ) >> $MKFILE.tmp 400 435 fi 401 436 402 437 # Remove the TCL sources after a successful Expect build. 403 438 if [ "$i" = "033-expect" ] ; then 404 echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp 405 echo -e "\trm sources-dir" >> $MKFILE.tmp 439 ( 440 cat << EOF 441 @rm -r \`cat sources-dir\` && \\ 442 rm sources-dir 443 EOF 444 ) >> $MKFILE.tmp 406 445 fi 407 446 408 447 # Include a touch of the target name so make can check 409 448 # if it's already been made. 410 echo -e "\t@touch \$@" >> $MKFILE.tmp 449 ( 450 cat << EOF 451 @touch \$@ 452 EOF 453 ) >> $MKFILE.tmp 411 454 412 455 # The next two "if" must be after the touch to can check if the sources 413 456 # directories should be retained or deleted. 414 457 if [ "$i" = "027-binutils-pass1" -o "$i" = "036-binutils-pass2" ] ; then 415 echo -e "\t@if [ ! -e \$@ ] ; then \\" >> $MKFILE.tmp 416 echo -e "\t\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 417 echo -e "\t\trm -r \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp 418 echo -e "\t\trm -r \$(LFS)\$(SRC)/binutils-build; \\" >> $MKFILE.tmp 419 echo -e "\tfi;" >> $MKFILE.tmp 420 fi 458 ( 459 cat << EOF 460 @if [ ! -e \$@ ] ; then \\ 461 ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\ 462 rm -r \$(LFS)\$(SRC)/\$\$ROOT && \\ 463 rm -r \$(LFS)\$(SRC)/binutils-build; \\ 464 fi; 465 EOF 466 ) >> $MKFILE.tmp 467 fi 468 421 469 if [ "$i" = "032-tcl" ] ; then 422 echo -e "\t@if [ ! -e \$@ ] ; then \\" >> $MKFILE.tmp 423 echo -e "\t\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 424 echo -e "\t\trm -r \$(LFS)\$(SRC)/\$\$ROOT; \\" >> $MKFILE.tmp 425 echo -e "\tfi;" >> $MKFILE.tmp 470 ( 471 cat << EOF 472 @if [ ! -e \$@ ] ; then \\ 473 ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\ 474 rm -r \$(LFS)\$(SRC)/\$\$ROOT; \\ 475 fi; 476 EOF 477 ) >> $MKFILE.tmp 426 478 fi 427 479 … … 449 501 continue 450 502 else 451 echo -e "\n$i: $PREV" >> $MKFILE.tmp 452 echo -e "\t@\$(call echo_message, Building)" >> $MKFILE.tmp 503 ( 504 cat << EOF 505 506 $i: $PREV 507 @\$(call echo_message, Building) 508 EOF 509 ) >> $MKFILE.tmp 453 510 fi 454 511 … … 458 515 459 516 # If $vrs isn't empty, we've got a package... 517 # Insert instructions for unpacking the package and changing directories 460 518 if [ "$vrs" != "" ] ; then 461 519 FILE="$name-$vrs.tar.bz2" 462 463 # Insert instructions for unpacking the package and changing directories 464 echo -e "\t@\$(call unpack,$FILE)" >> $MKFILE.tmp 465 echo -e "\t@ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 466 echo -e "\techo \"PKGDIR=\$(SRC)/\$\$ROOT\" > envars && \\" >> $MKFILE.tmp 467 echo -e "\techo \"export PKGDIR\" >> envars\\" >> $MKFILE.tmp 520 ( 521 cat << EOF 522 @\$(call unpack,$FILE) 523 @ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\ 524 echo "PKGDIR=\$(SRC)/\$\$ROOT" > envars && \\ 525 echo "export PKGDIR" >> envars\\ 526 EOF 527 ) >> $MKFILE.tmp 468 528 fi 469 529 470 530 # For the Re-Adjusting phase we must to cd to the binutils-build directory. 471 531 if [ "$i" = "067-readjusting" ] ; then 472 echo -e "\t@echo \"PKGDIR=\$(SRC)/binutils-build\" > envars && \\" >> $MKFILE.tmp 473 echo -e "\techo \"export PKGDIR\" >> envars" >> $MKFILE.tmp 532 ( 533 cat << EOF 534 @echo "PKGDIR=\$(SRC)/binutils-build" > envars && \\ 535 echo "export PKGDIR" >> envars 536 EOF 537 ) >> $MKFILE.tmp 474 538 fi 475 539 … … 477 541 # chroot. 478 542 if [ "$i" = "057-kernfs" ] ; then 479 echo -e "\t@echo \"LFS=\$(LFS)\" > envars && \\" >> $MKFILE.tmp 480 echo -e "\techo \"export LFS\" >> envars && \\" >> $MKFILE.tmp 481 # Insert date and disk usage at the top of the log file. 482 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\\\n\" >logs/$i && \\" >> $MKFILE.tmp 483 # Insert the script run 484 echo -e "\t. envars && commands/$file >>logs/$i 2>&1 && \\" >> $MKFILE.tmp 485 # Insert date and disk usage at the bottom of the log file. 486 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\\\n\" >>logs/$i" >> $MKFILE.tmp 543 ( 544 cat << EOF 545 @echo "LFS=\$(LFS)" > envars && \\ 546 echo "export LFS" >> envars && \\ 547 echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\n" >logs/$i && \\ 548 . envars && commands/$file >>logs/$i 2>&1 && \\ 549 echo -e "\n\`date\`\n\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\n" >>logs/$i 550 EOF 551 ) >> $MKFILE.tmp 552 487 553 # The rest of Chapter06 use CHROOT1 function 488 554 else 489 # Insert date and disk usage at the top of the log file. 490 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -skx --exclude=0??-* \$(LFS)\`\\\n\" >logs/$i && \\" >> $MKFILE.tmp 491 # Insert the script run 492 echo -e "\t\$(CHROOT1) 'cd /jhalfs && . envars && commands/$file >>logs/$i 2>&1' && \\" >> $MKFILE.tmp 493 # Insert date and disk usage at the bottom of the log file. 494 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -skx --exclude=0??-* \$(LFS)\`\\\n\" >>logs/$i" >> $MKFILE.tmp 555 ( 556 cat << EOF 557 echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=0??-* \$(LFS)\`\n" >logs/$i && \\ 558 \$(CHROOT1) 'cd /jhalfs && source envars && commands/$file >>logs/$i 2>&1' && \\ 559 echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=0??-* \$(LFS)\`\n" >>logs/$i 560 EOF 561 ) >> $MKFILE.tmp 562 495 563 fi 496 564 497 565 # Remove the build directory(ies) even if the package build fails. 498 566 if [ "$vrs" != "" ] ; then 499 echo -e "\t@ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp 500 echo -e "\trm -r \$(LFS)\$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp 501 echo -e "\tif [ -e \$(LFS)\$(SRC)/$name-build ]; then \\" >> $MKFILE.tmp 502 echo -e "\t\trm -r \$(LFS)\$(SRC)/$name-build; \\" >> $MKFILE.tmp 503 echo -e "\tfi;" >> $MKFILE.tmp 567 ( 568 cat << EOF 569 @ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\ 570 rm -r \$(LFS)\$(SRC)/\$\$ROOT && \\ 571 if [ -e \$(LFS)\$(SRC)/$name-build ]; then \\ 572 rm -r \$(LFS)\$(SRC)/$name-build; \\ 573 fi; 574 EOF 575 ) >> $MKFILE.tmp 504 576 fi 505 577 506 578 # Remove the Binutils pass 2 sources after a successful Re-Adjusting phase. 507 579 if [ "$i" = "067-readjusting" ] ; then 508 echo -e "\t@rm -r \`cat sources-dir\` && \\" >> $MKFILE.tmp 509 echo -e "\trm -r \$(LFS)\$(SRC)/binutils-build && \\" >> $MKFILE.tmp 510 echo -e "\trm sources-dir" >> $MKFILE.tmp 580 ( 581 cat << EOF 582 @rm -r \`cat sources-dir\` && \\ 583 rm -r \$(LFS)\$(SRC)/binutils-build && \\ 584 rm sources-dir 585 EOF 586 ) >> $MKFILE.tmp 511 587 fi 512 588 513 589 # Include a touch of the target name so make can check 514 590 # if it's already been made. 515 echo -e "\t@touch \$@" >> $MKFILE.tmp 591 ( 592 cat << EOF 593 @touch \$@ 594 EOF 595 ) >> $MKFILE.tmp 516 596 517 597 # Keep the script file name for Makefile dependencies. … … 519 599 done 520 600 521 # Add a header to the top of the real Makefile 522 echo -e "$HEADER\n" > $MKFILE 523 524 # Add some variables and include the functions file 525 echo "SRC= /sources" >> $MKFILE 526 echo -e "LFS= $BUILDDIR\n" >> $MKFILE 527 echo -e "include functions\n" >> $MKFILE 601 # Add a header, some variables and include the function file 602 # to the top of the real Makefile. 603 ( 604 cat << EOF 605 $HEADER 606 607 SRC= /sources 608 LFS= $BUILDDIR 609 610 include functions 611 612 EOF 613 ) > $MKFILE 614 528 615 529 616 # Add chroot commands … … 538 625 # Drop in the main target 'all:' and the chapter targets with each sub-target 539 626 # as a dependency. 540 echo "all: chapter4 chapter5" >> $MKFILE 541 echo -e "\t@echo -e \"\\\n\\\tYour new LFS system has been successfully built\"\n" >> $MKFILE 542 echo -e "chapter4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment\n" >> $MKFILE 543 echo -e "chapter5: chapter4 $chapter5\n" >> $MKFILE 544 echo -e "chapter6: chapter5 $chapter6\n" >> $MKFILE 545 546 # Clean targets 547 echo "clean-all: clean" >> $MKFILE 548 echo -e "\trm -rf ./*\n" >> $MKFILE 549 550 echo -e "clean: clean-chapter5 clean-chapter4\n" >> $MKFILE 551 552 echo "clean-chapter4:" >> $MKFILE 553 echo -e "\t-userdel lfs" >> $MKFILE 554 echo -e "\trm -rf /home/lfs" >> $MKFILE 555 echo -e "\trm -rf \$(LFS)/tools" >> $MKFILE 556 echo -e "\trm -f /tools" >> $MKFILE 557 echo -e "\trm -f envars" >> $MKFILE 558 echo -e "\trm -f 02* logs/02*.log\n" >> $MKFILE 559 560 echo "clean-chapter5:" >> $MKFILE 561 echo -e "\trm -rf \$(LFS)/tools/*" >> $MKFILE 562 echo -e "\trm -f envars" >> $MKFILE 563 echo -e "\trm -f $chapter5" >> $MKFILE 564 echo -e "\tcd logs && rm -f $chapter5 && cd ..\n" >> $MKFILE 565 566 # The chapter4 sub-targets are hard-coded to create the lfs user, 567 # to make the scripts executable, and to create a clean environment 568 # for the lfs user. 569 echo "020-creatingtoolsdir:" >> $MKFILE 570 echo -e "\t@\$(call echo_message, Building)" >> $MKFILE 571 echo -e "\t@mkdir -v \$(LFS)/tools && \\" >> $MKFILE 572 echo -e "\tln -sv \$(LFS)/tools / && \\" >> $MKFILE 573 echo -e "\ttouch \$@\n" >> $MKFILE 574 575 echo "021-addinguser: 020-creatingtoolsdir" >> $MKFILE 576 echo -e "\t@\$(call echo_message, Building)" >> $MKFILE 577 echo -e "\t@groupadd lfs && \\" >> $MKFILE 578 echo -e "\tuseradd -s /bin/bash -g lfs -m -k /dev/null lfs && \\" >> $MKFILE 579 echo -e "\tchown lfs \$(LFS)/tools && \\" >> $MKFILE 580 echo -e "\tchown lfs \$(LFS)/sources && \\" >> $MKFILE 581 # Make the scripts executable 582 echo -e "\tchmod -R +x $JHALFSDIR/commands && \\" >> $MKFILE 583 echo -e "\ttouch \$@\n" >> $MKFILE 584 585 echo "022-settingenvironment: 021-addinguser" >> $MKFILE 586 echo -e "\t@\$(call echo_message, Building)" >> $MKFILE 587 echo -e "\t@echo \"exec env -i HOME=\\\$\$HOME TERM=\\\$\$TERM PS1='\u:\w\$$ ' /bin/bash\" > /home/lfs/.bash_profile && \\" >> $MKFILE 588 echo -e "\techo \"set +h\" > /home/lfs/.bashrc && \\" >> $MKFILE 589 echo -e "\techo \"umask 022\" >> /home/lfs/.bashrc && \\" >> $MKFILE 590 echo -e "\techo \"LFS=/mnt/lfs\" >> /home/lfs/.bashrc && \\" >> $MKFILE 591 echo -e "\techo \"LC_ALL=POSIX\" >> /home/lfs/.bashrc && \\" >> $MKFILE 592 echo -e "\techo \"PATH=/tools/bin:/bin:/usr/bin\" >> /home/lfs/.bashrc && \\" >> $MKFILE 593 echo -e "\techo \"export LFS LC_ALL PATH\" >> /home/lfs/.bashrc && \\" >> $MKFILE 594 # Source the file where we place changing variables. 595 echo -e "\techo \". $JHALFSDIR/envars\" >> /home/lfs/.bashrc && \\" >> $MKFILE 596 echo -e "\tchown lfs:lfs /home/lfs/.bash* && \\" >> $MKFILE 597 echo -e "\ttouch envars && \\" >> $MKFILE 598 echo -e "\ttouch \$@" >> $MKFILE 627 ( 628 cat << EOF 629 all: chapter4 chapter5 630 @echo -e "\n\tYour new LFS system has been successfully built" 631 632 chapter4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment 633 634 chapter5: chapter4 $chapter5 635 636 chapter6: chapter5 $chapter6 637 638 clean-all: clean 639 rm -rf ./* 640 641 clean: clean-chapter5 clean-chapter4 642 643 clean-chapter4: 644 -userdel lfs 645 rm -rf /home/lfs 646 rm -rf \$(LFS)/tools 647 rm -f /tools 648 rm -f envars 649 rm -f 02* logs/02*.log 650 651 clean-chapter5: 652 rm -rf \$(LFS)/tools/* 653 rm -f envars 654 rm -f $chapter5 655 cd logs && rm -f $chapter5 && cd .. 656 657 020-creatingtoolsdir: 658 @\$(call echo_message, Building) 659 @mkdir -v \$(LFS)/tools && \\ 660 ln -sv \$(LFS)/tools / && \\ 661 touch \$@ 662 663 021-addinguser: 020-creatingtoolsdir 664 @\$(call echo_message, Building) 665 @groupadd lfs && \\ 666 useradd -s /bin/bash -g lfs -m -k /dev/null lfs && \\ 667 chown lfs \$(LFS)/tools && \\ 668 chown lfs \$(LFS)/sources && \\ 669 chmod -R +x $JHALFSDIR/commands && \\ 670 touch \$@ 671 672 022-settingenvironment: 021-addinguser 673 @\$(call echo_message, Building) 674 @echo "exec env -i HOME=\\\$\$HOME TERM=\\\$\$TERM PS1='\u:\w\$$ ' /bin/bash" > /home/lfs/.bash_profile && \\ 675 echo "set +h" > /home/lfs/.bashrc && \\ 676 echo "umask 022" >> /home/lfs/.bashrc && \\ 677 echo "LFS=/mnt/lfs" >> /home/lfs/.bashrc && \\ 678 echo "LC_ALL=POSIX" >> /home/lfs/.bashrc && \\ 679 echo "PATH=/tools/bin:/bin:/usr/bin" >> /home/lfs/.bashrc && \\ 680 echo "export LFS LC_ALL PATH" >> /home/lfs/.bashrc && \\ 681 echo ". $JHALFSDIR/envars" >> /home/lfs/.bashrc && \\ 682 chown lfs:lfs /home/lfs/.bash* && \\ 683 touch envars && \\ 684 touch \$@ 685 EOF 686 ) >> $MKFILE 599 687 600 688 # Bring over the items from the Makefile.tmp
Note:
See TracChangeset
for help on using the changeset viewer.