source: gs3-extensions/hathitrust-downloadfrom/trunk/SETUP.bash@ 26436

Last change on this file since 26436 was 26436, checked in by davidb, 8 years ago

Initial cut at code for exporting content out of the Hathitrust, suitable for ingest by Greenstone

File size: 922 bytes
Line 
1
2## Based on:
3## http://linuxgazette.net/139/okopnik.html
4## (a local version of the page is available in the 'docs' folder
5## as 'Installing-Perl-Modules-Under-User_Control.html)
6
7export HTEXPORT_HOME=`pwd`
8echo "Set HTEXPORT_HOME to $HTEXPORT_HOME"
9
10echo "+ Adding in HTEXPORT_HOME/cpan-installed to Perl's runtime environment (PERL5LIB)"
11
12if [ -z "$PERL5LIB" ] ; then
13 # If PERL5LIB wasn't previously defined, set it...
14 export PERL5LIB=$HTEXPORT_HOME/cpan-installed/lib
15else
16 # ...otherwise, extend it.
17 export PERL5LIB=$PERL5LIB:$HTEXPORT_HOME/cpan-installed/lib
18fi
19
20
21if [ ! -d "cpan-installed" ] ; then
22 echo "++ Creating directory 'cpan-install'"
23 mkdir "cpan-installed"
24fi
25
26
27for d in lib man man/man1 man/man3 ; do
28 fd="$HTEXPORT_HOME/cpan-installed/$d"
29 if [ ! -d "$fd" ] ; then
30 echo "++ Creating directory '$fd'"
31 mkdir "$fd"
32 fi
33done
34
35
36cat README.txt | sed "s%\$HTEXPORT_HOME%$HTEXPORT_HOME%g"
Note: See TracBrowser for help on using the repository browser.