Add 7.7 - Build gettext

This commit is contained in:
Aditya 2023-01-10 10:27:32 +05:30
parent 264c7d6f65
commit fd41950ec7
2 changed files with 37 additions and 0 deletions

View file

@ -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

View file

@ -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