mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
Add 8.43 - Build intltool
This commit is contained in:
parent
ebae03e4f9
commit
1b3b820f92
2 changed files with 41 additions and 0 deletions
29
scripts/chapter8/8.43-intltool.sh
Normal file
29
scripts/chapter8/8.43-intltool.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf intltool-0.51.0.tar.gz
|
||||
cd intltool-0.51.0
|
||||
|
||||
sed -i 's:\\\${:\\\$\\{:' intltool-update.in
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
install -v -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-0.51.0/I18N-HOWTO
|
||||
|
||||
cd /sources
|
||||
rm -rf intltool-0.51.0
|
|
@ -1055,3 +1055,15 @@ then
|
|||
stop_script "chapter8/8.42-xml-parser.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.43
|
||||
# ============
|
||||
echo "Building intltool"
|
||||
su -c "bash $SCRIPT/chapter8/8.43-intltool.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.43-intltool.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue