root/documentation/trunk/shared/gen-gli-help.sh @ 27113

Revision 25084, 0.8 KB (checked in by jmt12, 8 years ago)

A bash script to aid when generating XML from GLI's help documentation

  • Property svn:executable set to *
Line 
1# Ensure GSDLHOME is set
2if [ "x$GSDLHOME" = "x" ] ; then
3    echo "Error! GSDLHOME not set - source setup.bash in Greenstone first";
4    exit 1
5fi
6
7# Sus out what languages to build in
8all_langs="en es ru fr ar"
9if [ "$1" == "all" ]; then
10    langs=$all_langs
11
12elif [ "$1" != "" ]; then
13        langs=$1
14else
15    echo "choose a language to work with out of: $all_langs"
16    echo "choose 'all' for all languages"
17    echo -n "> "
18    read langs
19    if [ "$langs" = "all" ]; then
20        langs=$all_langs
21    fi
22fi
23
24# Call the gli-help generation for each applicable language
25for l in $langs; do
26    echo -n "Processing the gli-help in $l..."
27    java -DGSDLHOME="$GSDLHOME" -cp .:xalan.jar ApplyXSLT $l ../manuals/processing/gen-gli-help-to-manual-chapter.xsl $GSDLHOME/gli/help/$l/help.xml > ../manuals/xml-source/$l/help-en.xml
28done
Note: See TracBrowser for help on using the browser.