Added Perl and M4 as host requirements (code:Matthew Burgess)

This commit is contained in:
George Boudreau 2008-10-21 21:24:25 +00:00
parent d4bbfe2067
commit 15c9e722d5
2 changed files with 3 additions and 1 deletions

View file

@ -770,7 +770,7 @@ set -e
# Add chroot commands # Add chroot commands
if [ "$METHOD" = "chroot" ] ; then if [ "$METHOD" = "chroot" ] ; then
CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`" CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`"
chroot=`cat chroot/*chroot* | \ chroot=`cat chroot/???-chroot | \
sed -e "s@chroot@$CHROOT_LOC@" \ sed -e "s@chroot@$CHROOT_LOC@" \
-e '/#!\/bin\/bash/d' \ -e '/#!\/bin\/bash/d' \
-e '/^export/d' \ -e '/^export/d' \

View file

@ -99,8 +99,10 @@ check_prerequisites() { #
check_version "3.0" "$(gawk --version | head -n1 | cut -d" " -f3)" "GAWK" check_version "3.0" "$(gawk --version | head -n1 | cut -d" " -f3)" "GAWK"
check_version "2.5" "$(grep --version | head -n1 | awk '{print $NF}')" "GREP" check_version "2.5" "$(grep --version | head -n1 | awk '{print $NF}')" "GREP"
check_version "1.2.4" "$(gzip --version 2>&1 | head -n1 | cut -d" " -f2)" "GZIP" check_version "1.2.4" "$(gzip --version 2>&1 | head -n1 | cut -d" " -f2)" "GZIP"
check_version "1.4" "$(m4 --version 2>&1 | head -n1 | cut -d" " -f3)" "M4"
check_version "3.79.1" "$(make --version | head -n1 | cut -d " " -f3 | cut -c1-4)" "MAKE" check_version "3.79.1" "$(make --version | head -n1 | cut -d " " -f3 | cut -c1-4)" "MAKE"
check_version "2.5.4" "$(patch --version | head -n1 | cut -d" " -f2)" "PATCH" check_version "2.5.4" "$(patch --version | head -n1 | cut -d" " -f2)" "PATCH"
check_version "5.6.0" "$(perl -V:version | cut -f2 -d\')" "PERL"
check_version "3.0.2" "$(sed --version | head -n1 | cut -d" " -f4)" "SED" check_version "3.0.2" "$(sed --version | head -n1 | cut -d" " -f4)" "SED"
check_version "4.8" "$(makeinfo --version | head -n1 | awk '{ print$NF }')" "TEXINFO" check_version "4.8" "$(makeinfo --version | head -n1 | awk '{ print$NF }')" "TEXINFO"