Removed now uneeded code.

This commit is contained in:
Manuel Canales Esparcia 2005-09-27 18:13:19 +00:00
parent c4cf6de3dd
commit dc2fee8036

10
jhalfs
View file

@ -155,7 +155,7 @@ extract_commands() {
if [ -d commands ] ; then rm -rf commands ; fi && mkdir commands
echo -n "Extracting commands... "
# Dump the commands in text form from the LFS book.
# Dump the commands in shell script form from the LFS book.
xsltproc --nonet --xinclude -o ./commands/ $XSL \
lfs-$LFSVRS/index.xml >>$JHALFSDIR/$LOG 2>&1
@ -286,14 +286,6 @@ build_Makefile() {
echo -e "\tcd \$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp
fi
# # Drop in the actual commands that were parsed from the book
# # These seds add an extra $ to each variable so make doesn't break,
# # add tabs to the beginning of each line, and add ' && \' to the end
# # of each line except for those that end in '\'.
# cat $i | sed -e 's:\$:&&:g' -e 's:^:\t:' -e 's:[^\\]$:& \&\& \\:' >> $MKFILE.tmp
# # This sed removes the ' && \' from the last command of each target
# sed -i '$s: \&\& \\::' $MKFILE.tmp
# Run the script
echo -e "\tsu - lfs -c \"/bin/bash $file\"" >> $MKFILE.tmp