[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 |
|
---|
[26631] | 23 | cat src/cgi-bin/export-individual-expeditee.pl.in \
|
---|
| 24 | | sed "s%@FULL_PERL_EXE@%$FULL_PERL_EXE%g" \
|
---|
| 25 | > ../../web/WEB-INF/cgi/export-individual-expeditee.pl
|
---|
[26745] | 26 |
|
---|
| 27 | cat src/cgi-bin/generate-collection-space.pl.in \
|
---|
| 28 | | sed "s%@FULL_PERL_EXE@%$FULL_PERL_EXE%g" \
|
---|
| 29 | > ../../web/WEB-INF/cgi/generate-collection-space.pl
|
---|
[24916] | 30 | }
|
---|
| 31 |
|
---|
[24942] | 32 | if [ ! -d ../../web/ext/html-to-expeditee ] ; then
|
---|
[24920] | 33 | echo "Making supporting html-to-expeditee directory in web/ext folder"
|
---|
[24942] | 34 | mkdir ../../web/ext/html-to-expeditee
|
---|
[24916] | 35 | fi
|
---|
| 36 |
|
---|
[24920] | 37 | if [ ! -d ../../web/ext/html-to-expeditee/jquery ] ; then
|
---|
| 38 | echo "Copying jquery into web/ext/html-to-expeditee folder"
|
---|
| 39 | /bin/cp -r packages/jquery ../../web/ext/html-to-expeditee/.
|
---|
[24916] | 40 | fi
|
---|
| 41 |
|
---|
[24920] | 42 | if [ ! -d ../../web/ext/html-to-expeditee/js ] ; then
|
---|
| 43 | echo "Copying src/js into web/ext/html-to-expeditee/js"
|
---|
| 44 | /bin/cp -r src/js ../../web/ext/html-to-expeditee/.
|
---|
| 45 | elif [ "src/js/html-to-expeditee.js" -nt "../../web/ext/html-to-expeditee/js/html-to-expeditee.js" ] ; then
|
---|
[24933] | 46 | echo "Updating src/js/*.js to web/ext/html-to-expeditee/js/."
|
---|
| 47 | /bin/cp -r src/js/*.js ../../web/ext/html-to-expeditee/js/.
|
---|
[24919] | 48 | fi
|
---|
| 49 |
|
---|
| 50 |
|
---|
[24916] | 51 | if [ ! -f ../../web/WEB-INF/cgi/html-to-expeditee.pl ] ; then
|
---|
| 52 | echo "Installing html-to-expeditee.pl to cgi-bin directory"
|
---|
| 53 | installPerlCGI
|
---|
| 54 | elif [ "src/cgi-bin/html-to-expeditee.pl.in" -nt "../../web/WEB-INF/cgi/html-to-expeditee.pl" ] ; then
|
---|
| 55 | echo "Installing latest version of html-to-expeditee.pl to cgi-bin directory"
|
---|
| 56 | installPerlCGI
|
---|
| 57 | fi
|
---|
| 58 |
|
---|
[26631] | 59 | if [ ! -f ../../web/WEB-INF/cgi/export-individual-expeditee.pl ] ; then
|
---|
| 60 | echo "Installing export-individual-expeditee.pl to cgi-bin directory"
|
---|
| 61 | installPerlCGI
|
---|
| 62 | elif [ "src/cgi-bin/export-individual-expeditee.pl.in" -nt "../../web/WEB-INF/cgi/export-individual-expeditee.pl" ] ; then
|
---|
| 63 | echo "Installing latest version of export-individual-expeditee.pl to cgi-bin directory"
|
---|
| 64 | installPerlCGI
|
---|
| 65 | fi
|
---|
[24916] | 66 |
|
---|
[26745] | 67 | if [ ! -f ../../web/WEB-INF/cgi/generate-collection-space.pl ] ; then
|
---|
| 68 | echo "Installing generate-collection-space.pl to cgi-bin directory"
|
---|
| 69 | installPerlCGI
|
---|
| 70 | elif [ "src/cgi-bin/generate-collection-space.pl.in" -nt "../../web/WEB-INF/cgi/generate-collection-space.pl" ] ; then
|
---|
| 71 | echo "Installing latest version of generate-collection-space.pl to cgi-bin directory"
|
---|
| 72 | installPerlCGI
|
---|
| 73 | fi |
---|