forked from cdrdao/cdrdao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·34 lines (28 loc) · 999 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh
# Run this to generate the configure script and unpack needed packages
# This deletes the (old) scsilib dir and unpacks the latest version
if test -e scsilib.tar.gz ; then
rm -rf scsilib
echo "Unpacking scsilib.tar.gz"
tar xzf scsilib.tar.gz
find scsilib -exec chmod +w {} \;
echo "Patching scsilib"
patch -s -d scsilib -p1 < scsilib.patch
fi
# Minimum version
MAJOR_VERSION=1
MINOR_VERSION=7
AMVERSION=`automake --version | awk '/automake/ {print $4}'`
if test `echo $AMVERSION | awk -F. '{print $1}'` -lt $MAJOR_VERSION;
then
echo "Your version of automake is too old, you need at least automake $MAJOR_VERSION.$MINOR_VERSION"
exit -1
fi
if test `echo $AMVERSION | awk -F. '{print $2}' | awk -F- '{print $1}'` -lt $MINOR_VERSION; then
echo "Your version of automake is too old, you need at least automake $MAJOR_VERSION.$MINOR_VERSION"
exit -1
fi
# Calls aclocal, automake, autoconf and al. for you
echo "Running autoreconf"
rm -fr autom4te.cache
autoreconf