Hi there, As for each package you should decompress the package, enter decompressed folder, compile&install and finally remove decompressed folder, and also while you do not learn any new thing by doing these each time, so I would like to share my automation solution which does these just by getting a partial name of the package:
To create the main .sh file, issue following commands while you're logged in by chroot (section 6 of LFS-7.1) and also you're in '$LFS/sources' directory: cat > t.sh << EOF if [ "$1" == "" ]; then echo 'USAGE: t.bash [name]' return fi FNAME=$(ls $1* | grep tar.xz) if [ "$FNAME" == "" ]; then FNAME=$(ls $1* | grep tar.gz) if [ "$FNAME" == "" ]; then FNAME=$(ls $1* | grep tar.bz2) if [ "$FNAME" == "" ]; then echo 'match not found!' return else TARPARAM='-jxf' EXT='.tar.bz2' fi else TARPARAM='-zxf' EXT='.tar.gz' fi else TARPARAM='-Jxf' EXT='.tar.xz' fi DIR=$(echo $FNAME | sed "s/$EXT//g") echo `rm -fR $DIR` echo `ls $1*` echo `tar $TARPARAM $FNAME` rm -vfR ut.sh echo -e 'cd ..\necho `rm -fR '$DIR'`\necho `ls '$1'*`\nrm -vfR ut.sh' >> ut.sh chmod 777 ut.sh cd $DIR EOF chmod 777 t.sh Now, to use automation, act like following: Issue following command to decompress and enter to decompressed folder by just specifying package partial name:source ./t.sh [package-partial-name] e.g. source ./t.sh autoco for autoconf-2.68 package.NOTE: package-partial-name should be long enough to distinct the package from others e.g. source ./t.sh bi is not suitable at all because can not distinct between binutils and bison!Do the book's instructions to configure, compile, test and install the package.Issue following command to undo the above instruction #1.source ../ut.sh. Sicerely Yours, Yasser.
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page