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

Last change on this file was 35654, checked in by davidb, 2 years ago

Changed from using http://svn.greenstone to https; minor adjustment of echo statements

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 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 # If removing the following commented out lines, then consider writing a DOS .bat equivalent
19 #
20 #echo "Please checkout https://svn.greenstone.org/documentation/trunk/shared into gli (as gli/shared)"
21 #echo "Then run ./COMPILE-ALL.sh(bat)"
22
23 echo ""
24 echo "Svn checking out https://svn.greenstone.org/documentation/trunk/shared into gli (as gli/shared)"
25 svn co https://svn.greenstone.org/documentation/trunk/shared $glihome/shared
26 echo ""
27 echo "Away to compile the $glihome/shared folder with ./COMPILE-ALL.sh"
28 echo ""
29 pushd $glihome/shared
30 ./COMPILE-ALL.sh
31 popd
32 echo ""
33fi
34
35if test -d "$glihome/shared"; then
36 echo "processing $lang version"
37 cd $lang
38 java -cp $glihome/shared:$glihome/shared/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $lang ../gen-many-html.xsl help.xml | perl -S ../splithelpdocument.pl
39 java -cp $glihome/shared:$glihome/shared/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $lang ../gen-index-xml.xsl help.xml > help_index.xml
40 cd ..
41else
42 echo "***** Tried to svn checkout https://svn.greenstone.org/documentation/trunk/shared into gli/shared, but did not succeed"
43fi
44
45
Note: See TracBrowser for help on using the repository browser.