aboutsummaryrefslogtreecommitdiff
path: root/contrib/update-pp.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-07 00:54:01 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-07 00:54:47 +0100
commitf1cbc109f7cb6908469f1b8de5a10accff95244e (patch)
tree15a693cd7ba07e5993146ba2bc5815cb3aa9da43 /contrib/update-pp.sh
parenteae85d62c10907a71b9087866669a46907411023 (diff)
add proper i18n for pp
Diffstat (limited to 'contrib/update-pp.sh')
-rwxr-xr-xcontrib/update-pp.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/update-pp.sh b/contrib/update-pp.sh
new file mode 100755
index 000000000..db31ba18a
--- /dev/null
+++ b/contrib/update-pp.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is in the public domain
+
+# Should be called with the list of languages to generate, i.e.
+# $ ./update-pp.sh en de fr it
+
+# Error checking on
+set -eu
+echo "Generating PP for ETag $VERSION"
+
+rm -f sphinx.log sphinx.err
+# We process inputs using Makefile in tos/ directory
+cd pp
+for l in $@
+do
+ mkdir -p $l
+ echo Generating PP for language $l
+ # 'f' is for the supported formats, note that the 'make' target
+ # MUST match the file extension.
+ for f in html txt pdf epub xml
+ do
+ rm -rf _build
+ echo " Generating format $f"
+ make -e SPHINXOPTS="-D language='$l'" $f >>sphinx.log 2>>sphinx.err < /dev/null
+ mv _build/$f/pp.$f $l/${VERSION}.$f
+ done
+done
+cd ..