Last change
on this file since 25084 was 25084, checked in by jmt12, 12 years ago |
A bash script to aid when generating XML from GLI's help documentation
|
-
Property svn:executable
set to
*
|
File size:
807 bytes
|
Rev | Line | |
---|
[25084] | 1 | # Ensure GSDLHOME is set
|
---|
| 2 | if [ "x$GSDLHOME" = "x" ] ; then
|
---|
| 3 | echo "Error! GSDLHOME not set - source setup.bash in Greenstone first";
|
---|
| 4 | exit 1
|
---|
| 5 | fi
|
---|
| 6 |
|
---|
| 7 | # Sus out what languages to build in
|
---|
| 8 | all_langs="en es ru fr ar"
|
---|
| 9 | if [ "$1" == "all" ]; then
|
---|
| 10 | langs=$all_langs
|
---|
| 11 |
|
---|
| 12 | elif [ "$1" != "" ]; then
|
---|
| 13 | langs=$1
|
---|
| 14 | else
|
---|
| 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
|
---|
| 22 | fi
|
---|
| 23 |
|
---|
| 24 | # Call the gli-help generation for each applicable language
|
---|
| 25 | for 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
|
---|
| 28 | done |
---|
Note:
See
TracBrowser
for help on using the repository browser.