Last change
on this file since 24916 was 24916, checked in by davidb, 12 years ago |
Initial cut at code to support converting Greenstone HTML document pages to the file format used by Expeditee through a CGI script
|
File size:
1.3 KB
|
Rev | Line | |
---|
[24916] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | installPerlCGI()
|
---|
| 4 | {
|
---|
| 5 |
|
---|
| 6 | if [ "x$FULL_PERL_EXE" != "x" ] ; then
|
---|
| 7 | echo " Using FULL_PERL_EXE = $FULL_PERL_EXE"
|
---|
| 8 | elif [ "x$PERL_HOME" != "x" ] ; then
|
---|
| 9 | echo " Constructing FULL_PERL_EXE from PERL_HOME=$PERL_HOME"
|
---|
| 10 | export FULL_PERL_EXE="$PERL_HOME/bin/perl"
|
---|
| 11 | else
|
---|
| 12 | echo " Neither FULL_PERL_EXE or PERL_HOME set."
|
---|
| 13 | echo " Constructing FULL_PERL_EXE from 'which perl'"
|
---|
| 14 | export FULL_PERL_EXE=`which perl`
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
| 17 | echo " Substituting @FULL_PERL_EXE@ -> $FULL_PERL_EXE"
|
---|
| 18 |
|
---|
| 19 | cat src/cgi-bin/html-to-expeditee.pl.in \
|
---|
| 20 | | sed "s%@FULL_PERL_EXE@%$FULL_PERL_EXE%g" \
|
---|
| 21 | > ../../web/WEB-INF/cgi/html-to-expeditee.pl
|
---|
| 22 |
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | if [ ! -d ../../web/ext/html-to-expeditee ] ; then
|
---|
| 26 | echo "Making web extension directory for html-to-expeditee"
|
---|
| 27 | mkdir ../../web/ext/html-to-expeditee
|
---|
| 28 | fi
|
---|
| 29 |
|
---|
| 30 | if [ ! -d ../../web/ext/html-to-expeditee/jquery ] ; then
|
---|
| 31 | echo "Copying jquery into web extension directory for html-to-expeditee"
|
---|
| 32 | /bin/cp -r packages/jquery ../../web/ext/html-to-expeditee/.
|
---|
| 33 | fi
|
---|
| 34 |
|
---|
| 35 | if [ ! -f ../../web/WEB-INF/cgi/html-to-expeditee.pl ] ; then
|
---|
| 36 | echo "Installing html-to-expeditee.pl to cgi-bin directory"
|
---|
| 37 | installPerlCGI
|
---|
| 38 | elif [ "src/cgi-bin/html-to-expeditee.pl.in" -nt "../../web/WEB-INF/cgi/html-to-expeditee.pl" ] ; then
|
---|
| 39 | echo "Installing latest version of html-to-expeditee.pl to cgi-bin directory"
|
---|
| 40 | installPerlCGI
|
---|
| 41 | fi
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.