Changeset 88dcce5


Ignore:
Timestamp:
09/30/2005 08:47:34 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:
3eb60fa
Parents:
8b33a10
Message:

Reverted Makefiles dependencies. They don't do what I supossed.
Added a first try of time and disk usage logging.
Moved the make run to their own function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r8b33a10 r88dcce5  
    286286  name=`echo $i | sed -e 's@[0-9]\{3\}-@@' -e 's@-pass[0-9]\{1\}@@'`
    287287
    288   # Set the dependency for the first target.
    289   if [ -z $PREV ] ; then PREV=chapter4 ; fi
    290 
    291288  # Drop in the name of the target on a new line, and the
    292289  # pevious target as a dependency.
    293   echo -e "\n$i: $PREV" >> $MKFILE.tmp
     290  echo -e "\n$i:" >> $MKFILE.tmp
    294291
    295292  # Find the version of the command files, if it corresponds with the building of
     
    314311  fi
    315312
     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
    316316  # 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
    318321
    319322  # Include a touch of the target name so make can check
     
    385388  echo -e "\ttouch \$@\n" >> $MKFILE
    386389
    387   echo "021-addinguser:  020-creatingtoolsdir" >> $MKFILE
     390  echo "021-addinguser:" >> $MKFILE
    388391  echo -e "\tgroupadd lfs && \\" >> $MKFILE
    389392  echo -e "\tuseradd -s /bin/bash -g lfs -m -k /dev/null lfs && \\" >> $MKFILE
     
    394397  echo -e "\ttouch \$@\n" >> $MKFILE
    395398
    396   echo "022-settingenvironment:  021-addinguser" >> $MKFILE
     399  echo "022-settingenvironment:" >> $MKFILE
    397400  echo -e "\techo \"exec env -i HOME=\\\$\$HOME TERM=\\\$\$TERM PS1='\u:\w\$$ ' /bin/bash\" > /home/lfs/.bash_profile && \\" >> $MKFILE
    398401  echo -e "\techo \"set +h\" > /home/lfs/.bashrc && \\" >> $MKFILE
     
    404407  # Source the file where we place changing variables.
    405408  echo -e "\techo \". $JHALFSDIR/envars\" >> /home/lfs/.bashrc && \\" >> $MKFILE
    406   echo -e "\tchown lfs /home/lfs/.bash* && \\" >> $MKFILE
     409  echo -e "\tchown lfs:lfs /home/lfs/.bash* && \\" >> $MKFILE
    407410  echo -e "\ttouch envars && \\" >> $MKFILE
    408   echo -e "\ttouch \$@\n" >> $MKFILE
     411  echo -e "\ttouch \$@" >> $MKFILE
    409412
    410413
     
    415418}
    416419
     420run_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}
    417428
    418429if [ ! -d $JHALFSDIR ] ; then
     
    432443get_book
    433444build_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.