summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-20 02:31:16 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-20 02:31:16 +0100
commitef9ed61ff77b33718a24d0601c63313ec8eb4373 (patch)
tree108915f462460a57829f640ed3848c0c2d0ce440 /bin
parent5d4bcb4808b78fe989b9c955d7ab23e0075a60b4 (diff)
downloadjenkins.debian.net-ef9ed61ff77b33718a24d0601c63313ec8eb4373.tar.xz
add support for building language variants of the manual from po files. and add first such job
Diffstat (limited to 'bin')
-rwxr-xr-xbin/d-i_manual.sh27
-rwxr-xr-xbin/email2irc.sh2
2 files changed, 27 insertions, 2 deletions
diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index 4ecdba59..ba50b3d8 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -40,6 +40,17 @@ pdebuild_package() {
#
cd manual
pdebuild --use-pdebuild-internal
+ cd ..
+}
+
+po2xml() {
+ cd manual
+ ./scripts/merge_xml $1
+ ./scripts/update_pot
+ ./scripts/update_po $1
+ ./scripts/revert_pot
+ ./scripts/create_xml $1
+ cd ..
}
build_language() {
@@ -57,6 +68,13 @@ build_language() {
make languages=$1 architectures=$ARCH destination=../../$FORMAT/ formats=$FORMAT
fi
done
+ cd ../..
+ svn revert manual -R
+}
+
+po_cleanup() {
+ echo "Cleanup generated files:"
+ rm -rv manual/$1 manual/integrated
}
init_workspace
@@ -64,6 +82,7 @@ init_workspace
# if $1 is not given, build the whole manual,
# else just the language $1 in format $2
#
+# FIXME: use variable names
if [ "$1" = "" ] ; then
pdebuild_package
else
@@ -71,5 +90,11 @@ else
echo "Error: need format too."
exit 1
fi
- build_language $1 $2
+ if [ "$3" = "" ] ; then
+ build_language $1 $2
+ else
+ po2xml $1
+ build_language $1 $2
+ po_cleanup $1
+ fi
fi
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 83c4edfc..3c02a71f 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -53,4 +53,4 @@ else
echo -e "----------\nbad luck\n-----------" >> /var/lib/jenkins/email_log
fi
-
+# FIXME /var/lib/jenkins/email_log will grow and grow