root/main/trunk/greenstone2/runtime-src/packages/security/CASCADE-MAKE/CURL.sh @ 28867

Revision 28867, 0.7 KB (checked in by ak19, 6 years ago)

Fix to test for when configure in curl does not need to be re-run.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3cd $securitydir/$compiledir
4prefix=$installdir
5
6# If doing a make clean or distclean
7if [ "x$1" != "x" ]; then
8    make $1
9    exit 0
10fi
11
12
13# else, configure, make, make install
14
15# CURL configure script is stricter than most, and insists that
16# no C pre-processing flags (such -I/aa/bb/cc) appear in the
17# CFLAGS variable
18export CFLAGS=`echo $CFLAGS | sed 's/-I[^ ]*//g'`
19
20# configure, but only if we haven't already
21if [ ! -e config.log ] ; then
22    ./configure --prefix=$prefix
23fi
24
25# make
26make
27if [ $? != 0 ] ; then
28    echo "Error encountered making $d"
29    exit 1
30fi
31
32# make install
33make install
34if [ $? != 0 ] ; then
35    echo "Error encountered when installing $d"
36    exit 1
37fi
38
39cd $securitydir
Note: See TracBrowser for help on using the browser.