mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.31 - Build gettext
This commit is contained in:
parent
88d20f392d
commit
c5adcaae44
2 changed files with 42 additions and 0 deletions
30
scripts/chapter8/8.31-gettext.sh
Normal file
30
scripts/chapter8/8.31-gettext.sh
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue