File: autoversion.sh

package info (click to toggle)
nexus 4.3.2-svn1921-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 45,052 kB
  • sloc: java: 70,724; cpp: 34,810; ansic: 19,434; xml: 4,191; python: 4,123; f90: 2,326; fortran: 1,529; makefile: 1,105; sh: 809; tcl: 173; lisp: 169; pascal: 93; haskell: 27
file content (34 lines) | stat: -rwxr-xr-x 790 bytes parent folder | download | duplicates (2)
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

for automake in automake-1.12 automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5 automake-1.4 automake ; do
	AUTOMAKE=`which $automake 2>/dev/null |  grep -v '^no'`
	if test "$AUTOMAKE" ; then
		break;
	fi
done
AUTOMAKE="$automake -a -c"
case $automake in
	automake-*)
		version=`echo $automake | cut -f2 -d'-'`
		ACLOCAL="aclocal-$version";;
	*)
		ACLOCAL="aclocal";
esac
	
for autoconf in autoconf-2.61 autoconf ; do 
	AUTOCONF=`which $autoconf 2>/dev/null | grep -v '^no'`
	if test "$AUTOCONF" ; then
		break;
	fi
done
AUTOCONF="$autoconf"
case $autoconf in
	autoconf-*)
		version=`echo $autoconf | cut -f2 -d'-'`
		AUTOHEADER="autoheader-$version";;
	*)
		AUTOHEADER="autoheader";;
esac

export AUTOMAKE ACLOCAL AUTOCONF AUTOHEADER