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 |
|
---|
3 | PACKAGES=`pwd`
|
---|
4 | cd ..
|
---|
5 | GSDLHOME=`pwd`
|
---|
6 | cd $PACKAGES
|
---|
7 | GSDLOS=`uname | tr A-Z a-z`
|
---|
8 |
|
---|
9 | # parse any arguments given from toplevel configure
|
---|
10 | while 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
|
---|
34 | done
|
---|
35 |
|
---|
36 |
|
---|
37 |
|
---|
38 | # configure the wvWare Word document converter
|
---|
39 | echo ""
|
---|
40 | echo "Configuring wvWare"
|
---|
41 | echo "cache-file = ", $CACHE_FILE
|
---|
42 |
|
---|
43 | cd "$PACKAGES/unix/wv"
|
---|
44 | tar -xzf wv-0.6.0-gs.tar.gz
|
---|
45 | cd wv-0.6.0-gs
|
---|
46 | ./configure $CACHE_FILE --prefix=$PACKAGES/unix/wv
|
---|
47 |
|
---|
48 | # configure the pdftohtml converter
|
---|
49 | echo ""
|
---|
50 | echo "Configuring pdftohtml"
|
---|
51 | echo ""
|
---|
52 |
|
---|
53 | cd "$PACKAGES/unix/pdftohtml"
|
---|
54 | tar -xzf pdftohtml_0_22_gs.tar.gz
|
---|
55 | cd pdftohtml_0_22
|
---|
56 |
|
---|
57 | # YAZ Z39.50 toolkit
|
---|
58 | if test x"$USE_Z3950" = "xtrue";
|
---|
59 | then
|
---|
60 | echo ""
|
---|
61 | echo "Configuring YAZ"
|
---|
62 | echo ""
|
---|
63 | cd "$PACKAGES/yaz"
|
---|
64 | ./configure $CACHE_FILE
|
---|
65 | else
|
---|
66 | echo ""
|
---|
67 | echo "Z39.50 support disabled - YAZ library not required"
|
---|
68 | echo ""
|
---|
69 | fi
|
---|
70 |
|
---|
71 | # configure wget
|
---|
72 | echo ""
|
---|
73 | echo "Configuring wget"
|
---|
74 | echo ""
|
---|
75 | cd $PACKAGES/wget
|
---|
76 | tar -xzf wget.tar.gz
|
---|
77 | cd $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.