source: main/trunk/gli/help/generate-html.sh@ 32138

Last change on this file since 32138 was 28531, checked in by ak19, 7 years ago

Kathy worked out the changes necessary to get the gli/help html files generated again. Modified the generate-html.sh to incorporate her fixes and further to accept any language and to checkout the documentation/trunk/shared folder from svn into gli if it's not already there as this is necessary to generate the gli help html files.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1#!/bin/sh
2
3glihome=$GSDLHOME/gli
4
5lang=$1
6if [ "x$lang" == "x" ]; then
7 lang=en
8fi
9
10if [ "$glihome" == "" ]; then
11 # assume glihelp in its usual place
12 pushd ../ > /dev/null
13 glihome=`pwd`
14 popd > /dev/null
15fi
16
17if test ! -d "$glihome/shared"; then
18 #echo "Please checkout http://svn.greenstone.org/documentation/trunk/shared into gli (as gli/shared)"
19 #echo "Then run ./COMPILE-ALL.sh(bat)"
20 echo ""
21 echo "**** Will checkout http://svn.greenstone.org/documentation/trunk/shared into gli (as gli/shared)"
22 svn co http://svn.greenstone.org/documentation/trunk/shared $glihome/shared
23 echo ""
24 echo "**** Will compile the $glihome/shared folder with ./COMPILE-ALL.sh"
25 pushd $glihome/shared
26 ./COMPILE-ALL.sh
27 popd
28 echo ""
29fi
30
31if test -d "$glihome/shared"; then
32 echo "processing $lang version"
33 cd $lang
34 java -cp $glihome/shared:$glihome/shared/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $lang ../gen-many-html.xsl help.xml | perl -S ../splithelpdocument.pl
35 java -cp $glihome/shared:$glihome/shared/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $lang ../gen-index-xml.xsl help.xml > help_index.xml
36 cd ..
37else
38 echo "Tried to svn checkout http://svn.greenstone.org/documentation/trunk/shared into gli/shared, but did not succeed"
39fi
40
41
Note: See TracBrowser for help on using the repository browser.