diff --git a/dump-lfs-scripts.xsl b/dump-lfs-scripts.xsl index 3a2017a..658cffc 100644 --- a/dump-lfs-scripts.xsl +++ b/dump-lfs-scripts.xsl @@ -51,16 +51,20 @@ - #!/tools/bin/bash + #!/tools/bin/bash set -e + + + #!/bin/sh - #!/bin/sh + #!/bin/sh set -e - cd $PKGDIR && + cd $PKGDIR exit @@ -86,92 +90,81 @@ make -k - + || true - - make mrproper && - cp -v ../kernel-config .config && - + tar.bz2 - && + + + + + patch -Z + + + + + + make mrproper + cp -v ../kernel-config .config + + + - make -k check + make -k check || true - + + + + + || true + + + + + + - && + - - - ( cat << EOF - - EOF ) > - - && - - - && - - - - - patch -Z - - && + + + + || true + - - && - - - - - - - - - \$@ - - - - - - - - diff --git a/jhalfs b/jhalfs index e3ebaf3..7668784 100755 --- a/jhalfs +++ b/jhalfs @@ -836,7 +836,7 @@ EOF i=1 for file in chapter06/*chroot* ; do chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \ - -e 's/ */ /g' -e 's|\\$|&&|g' -e 's|&&exit||g' -e 's|$| -c|' -e 's|"$$LFS"|$(LFS)|'` + -e 's/ */ /g' -e 's|\\$|&&|g' -e 's|exit||g' -e 's|$| -c|' -e 's|"$$LFS"|$(LFS)|'` echo -e "CHROOT$i= $chroot\n" >> $MKFILE i=`expr $i + 1` done