From fd41950ec71db86f96aa928b043ea1d04899a6d0 Mon Sep 17 00:00:00 2001 From: Aditya Date: Tue, 10 Jan 2023 10:27:32 +0530 Subject: [PATCH] Add 7.7 - Build gettext --- scripts/chapter7/7.7-gettext.sh | 25 +++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 scripts/chapter7/7.7-gettext.sh 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 +