diff --git a/scripts/chapter7/7.7-gettext.sh b/scripts/chapter7/7.7-gettext.sh new file mode 100644 index 0000000..14a7da5 --- /dev/null +++ b/scripts/chapter7/7.7-gettext.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +cd $LFS/sources +tar xf gettext-0.21.tar.xz +cd gettext-0.21 + +./configure --disable-shared + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +cp -v gettext-tools/src/{msgfmt,msgmerge,xgettext} /usr/bin + +cd $LFS/sources +rm -rf gettext-0.21 + diff --git a/scripts/main.sh b/scripts/main.sh index f1c5bc0..f1e9609 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -456,3 +456,15 @@ then stop_script "chapter7/7.6-create-files-and-symlinks.sh" fi +# Chapter 7.7 +# =========== +echo "Building gettext" +su -c "bash $PWD/chapter7/7.7-gettext.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter7/7.7-gettext.sh" +fi +