source: trunk/gsdl/packages/configure@ 1961

Last change on this file since 1961 was 1961, checked in by dg5, 23 years ago

Updated configure script to build pdftohtml from the tar.gz archive

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