summaryrefslogtreecommitdiffstats
path: root/bin/d-i_manual.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/d-i_manual.sh')
-rwxr-xr-xbin/d-i_manual.sh59
1 files changed, 45 insertions, 14 deletions
diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index 4ae455f8..eae84dc8 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -8,23 +8,54 @@ set -e
export LC_ALL=C
export MIRROR=http://ftp.de.debian.org/debian
export http_proxy="http://localhost:3128"
+export
-#
-# clean
-#
-rm -fv *.deb *.dsc *_*.build *_*.changes *_*.tar.gz
+init_workspace() {
+ #
+ # clean
+ #
+ rm -fv *.deb *.dsc *_*.build *_*.changes *_*.tar.gz
+
+ #
+ # svn checkout and update is done by jenkins job
+ #
+ svn status
+}
+
+pdebuild_package() {
+ #
+ # prepare build
+ #
+ if [ -f /var/base.tgz ] ; then
+ sudo pbuilder --create
+ else
+ sudo pbuilder --update
+ fi
+
+ #
+ # build
+ #
+ cd manual
+ pdebuild
+}
+build_language() {
+ FORMAT=$2
+ mkdir $FORMAT
+ cd manual/build
+ ARCHS=$(ls arch-options)
+ for ARCH in $ARCHS ; do
+ make languages=$1 architectures=$ARCH destination=../../$FORMAT/ formats=$FORMAT
+ done
+}
+
+init_workspace
#
-# prepare build
+# if $1 is not given, build the whole manual,
+# else just the language $1 as html
#
-if [ -f /var/base.tgz ] ; then
- sudo pbuilder --create
+if [ "$1" = "" ] ; then
+ pdebuild_package
else
- sudo pbuilder --update
+ build_language $1 html
fi
-
-#
-# build
-#
-cd manual
-pdebuild