Changeset c08d23b for jhalfs


Ignore:
Timestamp:
10/03/2005 02:40:33 AM (19 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
1936487
Parents:
52888e2
Message:

First attempt at getting past the chroot hump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r52888e2 rc08d23b  
    446446    # Drop in the name of the target on a new line, and the previous target
    447447    # as a dependency.
    448     echo -e "\n$i:  $PREV" >> $MKFILE.tmp
     448    if ! echo $i | grep -q "chroot" ; then
     449       echo -e "\n$i:  $PREV" >> $MKFILE.tmp
     450    fi
    449451
    450452    # Find the version of the command files, if it corresponds with the building of
     
    481483      # Insert date and disk usage at the top of the log file.
    482484      echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* /\`\\\n\" >logs/$i && \\" >> $MKFILE.tmp
    483       echo -e "\t. envars && commands/$file >>logs/$i 2>&1 && \\" >> $MKFILE.tmp
     485      echo -e "\t. envars && \$(CHROOT1) 'cd /jhalfs && commands/$file >>logs/$i 2>&1' && \\" >> $MKFILE.tmp
    484486      # Insert date and disk usage at the bottom of the log file.
    485487      echo -e "\techo -e \"\\\n\`date\`\\\n\\\nKB: \`du -sk --exclude=0??-* /\`\\\n\" >>logs/$i" >> $MKFILE.tmp
     
    516518  echo "export LFS := $BUILDDIR" >> $MKFILE
    517519  echo -e "export LOGDIR := $LOGDIR\n" >> $MKFILE
    518   echo "include functions" >> $MKFILE
     520  echo -e "include functions\n" >> $MKFILE
     521
     522  # Add chroot commands
     523  i=1
     524  for file in chapter06/*chroot* ; do
     525    chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \
     526        -e 's/  */ /g' -e 's|\\$|&&|g' -e 's|$| -c|'`
     527    echo -e "export CHROOT$i := $chroot\n" >> $MKFILE
     528    i=`expr $i + 1`
     529  done
    519530
    520531  # Drop in the main target 'all:' and the chapter targets with each sub-target
Note: See TracChangeset for help on using the changeset viewer.