Changeset 88dcce5
- Timestamp:
- 09/30/2005 08:47:34 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 3eb60fa
- Parents:
- 8b33a10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jhalfs
r8b33a10 r88dcce5 286 286 name=`echo $i | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'` 287 287 288 # Set the dependency for the first target.289 if [ -z $PREV ] ; then PREV=chapter4 ; fi290 291 288 # Drop in the name of the target on a new line, and the 292 289 # pevious target as a dependency. 293 echo -e "\n$i: $PREV" >> $MKFILE.tmp290 echo -e "\n$i:" >> $MKFILE.tmp 294 291 295 292 # Find the version of the command files, if it corresponds with the building of … … 314 311 fi 315 312 313 # Inser date and disk usage at the top of the log file. 314 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\\\n\" >\$(LOGDIR)/$i && \\" >> $MKFILE.tmp 315 316 316 # Insert the script run 317 echo -e "\tsu - lfs -c \". /home/lfs/.bashrc && $JHALFSDIR/commands/$file\" >\$(LOGDIR)/$i 2>&1 && \\" >> $MKFILE.tmp 317 echo -e "\tsu - lfs -c \". /home/lfs/.bashrc && $JHALFSDIR/commands/$file\" >>\$(LOGDIR)/$i 2>&1 && \\" >> $MKFILE.tmp 318 319 # Inser date and disk usage at the bottom of the log file. 320 echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* \$(LFS)\`\\\n\" >>\$(LOGDIR)/$i && \\" >> $MKFILE.tmp 318 321 319 322 # Include a touch of the target name so make can check … … 385 388 echo -e "\ttouch \$@\n" >> $MKFILE 386 389 387 echo "021-addinguser: 020-creatingtoolsdir" >> $MKFILE390 echo "021-addinguser:" >> $MKFILE 388 391 echo -e "\tgroupadd lfs && \\" >> $MKFILE 389 392 echo -e "\tuseradd -s /bin/bash -g lfs -m -k /dev/null lfs && \\" >> $MKFILE … … 394 397 echo -e "\ttouch \$@\n" >> $MKFILE 395 398 396 echo "022-settingenvironment: 021-addinguser" >> $MKFILE399 echo "022-settingenvironment:" >> $MKFILE 397 400 echo -e "\techo \"exec env -i HOME=\\\$\$HOME TERM=\\\$\$TERM PS1='\u:\w\$$ ' /bin/bash\" > /home/lfs/.bash_profile && \\" >> $MKFILE 398 401 echo -e "\techo \"set +h\" > /home/lfs/.bashrc && \\" >> $MKFILE … … 404 407 # Source the file where we place changing variables. 405 408 echo -e "\techo \". $JHALFSDIR/envars\" >> /home/lfs/.bashrc && \\" >> $MKFILE 406 echo -e "\tchown lfs /home/lfs/.bash* && \\" >> $MKFILE409 echo -e "\tchown lfs:lfs /home/lfs/.bash* && \\" >> $MKFILE 407 410 echo -e "\ttouch envars && \\" >> $MKFILE 408 echo -e "\ttouch \$@ \n" >> $MKFILE411 echo -e "\ttouch \$@" >> $MKFILE 409 412 410 413 … … 415 418 } 416 419 420 run_make() { 421 # Build the system 422 if [ -e $MKFILE ] ; then 423 echo -ne "Building the LFS system\n" 424 cd $JHALFSDIR && make 425 echo -ne "done\n" 426 fi 427 } 417 428 418 429 if [ ! -d $JHALFSDIR ] ; then … … 432 443 get_book 433 444 build_Makefile 434 if [ -e $MKFILE ] ; then 435 cd $JHALFSDIR && make 436 fi 445 #run_make
Note:
See TracChangeset
for help on using the changeset viewer.