Last change
on this file since 28946 was 28531, checked in by ak19, 11 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 |
|
---|
3 | glihome=$GSDLHOME/gli
|
---|
4 |
|
---|
5 | lang=$1
|
---|
6 | if [ "x$lang" == "x" ]; then
|
---|
7 | lang=en
|
---|
8 | fi
|
---|
9 |
|
---|
10 | if [ "$glihome" == "" ]; then
|
---|
11 | # assume glihelp in its usual place
|
---|
12 | pushd ../ > /dev/null
|
---|
13 | glihome=`pwd`
|
---|
14 | popd > /dev/null
|
---|
15 | fi
|
---|
16 |
|
---|
17 | if 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 ""
|
---|
29 | fi
|
---|
30 |
|
---|
31 | if 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 ..
|
---|
37 | else
|
---|
38 | echo "Tried to svn checkout http://svn.greenstone.org/documentation/trunk/shared into gli/shared, but did not succeed"
|
---|
39 | fi
|
---|
40 |
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.