Changeset 28531 for main


Ignore:
Timestamp:
2013-10-24T15:57:35+13:00 (11 years ago)
Author:
ak19
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/help/generate-html.sh

    r12724 r28531  
    22
    33glihome=$GSDLHOME/gli
     4
     5lang=$1
     6if [ "x$lang" == "x" ]; then
     7    lang=en
     8fi
    49
    510if [ "$glihome" == "" ]; then
     
    1015fi
    1116
    12 echo "processing english version"
    13 cd en
    14 java -cp $glihome -DGSDLHOME=$GSDLHOME ApplyXSLT ../gen-many-html.xsl help.xml | perl -S ../splithelpdocument.pl
    15 java -cp $glihome -DGSDLHOME=$GSDLHOME ApplyXSLT ../gen-index-xml.xsl help.xml > help_index.xml
    16 cd ..
     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
    1740
    1841
    19 
Note: See TracChangeset for help on using the changeset viewer.