mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 7.7 - Build gettext
This commit is contained in:
parent
264c7d6f65
commit
fd41950ec7
2 changed files with 37 additions and 0 deletions
25
scripts/chapter7/7.7-gettext.sh
Normal file
25
scripts/chapter7/7.7-gettext.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue