source: tags/gsdl-2_30d-distribution/gsdl/packages/configure@ 2308

Last change on this file since 2308 was 2019, checked in by sjboddie, 23 years ago

Altered wv and pdftohtml slightly so that they're installed to bin/$GSDLOS

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1#! /bin/sh
2
3PACKAGES=`pwd`
4cd ..
5GSDLHOME=`pwd`
6cd $PACKAGES
7GSDLOS=`uname | tr A-Z a-z`
8bindir=$GSDLHOME/bin/$GSDLOS
9
10
11# parse any arguments given from toplevel configure
12while test $# -ne 0; do
13 case "$1" in
14 --cache-file=*)
15 cache_filename=`echo $1 | sed s/--cache-file=//`
16 # turn relative path into an absolute path
17 cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'`
18 cache_dir=`cd $cache_dir 2>/dev/null && pwd`
19
20 cache_basefile=`echo $cache_filename | sed 's@.*/@@'`
21 cache_file="$cache_dir/$cache_basefile"
22 if test ! -f "$cache_file"; then
23 CACHE_FILE=""
24 else
25 CACHE_FILE="--cache-file=$cache_file"
26 fi
27 ;;
28 --enable-z3950)
29 USE_Z3950=true
30 ;;
31 --bindir=*)
32 bindira=`echo $1 | sed s/--bindir=//`
33 # turn relative path into an absolute path
34 bindir=`echo $bindira | sed 's@/[^/]*$@@'`
35 bindir=`cd $bindir 2>/dev/null && pwd`
36 bindirb=`echo $bindira | sed 's@.*/@@'`
37 bindir="$bindir/$bindirb"
38 ;;
39 *)
40 # ignore all other options for now
41 ;;
42 esac
43 shift
44done
45
46
47
48# configure the wvWare Word document converter
49echo ""
50echo "Configuring wvWare"
51echo ""
52
53cd "$PACKAGES/wv"
54tar -xzf wv-0.6.3-gs.tar.gz
55cd wv-gs
56./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir=$bindir
57
58# configure the pdftohtml converter
59echo ""
60echo "Configuring pdftohtml"
61echo ""
62
63cd "$PACKAGES/pdftohtml"
64tar -xzf pdftohtml_0_22_gs.tar.gz
65cd pdftohtml_0_22
66
67# YAZ Z39.50 toolkit
68if test x"$USE_Z3950" = "xtrue";
69then
70 echo ""
71 echo "Configuring YAZ"
72 echo ""
73 cd "$PACKAGES/yaz"
74 ./configure $CACHE_FILE
75else
76 echo ""
77 echo "Z39.50 support disabled - YAZ library not required"
78 echo ""
79fi
80
81# configure wget
82echo ""
83echo "Configuring wget"
84echo ""
85cd $PACKAGES/wget
86tar -xzf wget.tar.gz
87cd $PACKAGES/wget/wget-1.5.3
88./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir=$bindir
Note: See TracBrowser for help on using the repository browser.