From 1b3b820f9265f1189f7f39846d2d2789a851cd33 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 11:50:29 +0530 Subject: [PATCH] Add 8.43 - Build intltool --- scripts/chapter8/8.43-intltool.sh | 29 +++++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 scripts/chapter8/8.43-intltool.sh diff --git a/scripts/chapter8/8.43-intltool.sh b/scripts/chapter8/8.43-intltool.sh new file mode 100644 index 0000000..b3cde7d --- /dev/null +++ b/scripts/chapter8/8.43-intltool.sh @@ -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 diff --git a/scripts/main.sh b/scripts/main.sh index a440a2a..d9e22fa 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -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 +