Add 8.31 - Build gettext

This commit is contained in:
Aditya 2023-01-11 15:40:05 +05:30
parent 88d20f392d
commit c5adcaae44
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/bin/bash
cd /sources
tar xf gettext-0.21.tar.xz
cd gettext-0.21
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/gettext-0.21
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make check
make install
chmod -v 0755 /usr/lib/preloadable_libintl.so
cd /sources
rm -rf gettext-0.21

View file

@ -906,3 +906,15 @@ then
stop_script "chapter8/8.30-psmisc.sh"
fi
# Chapter 8.31
# ============
echo "Building gettext"
su -c "bash $SCRIPT/chapter8/8.31-gettext.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.31-gettext.sh"
fi