File: autogen.sh

package info (click to toggle)
grisbi 0.5.8-1.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,524 kB
  • ctags: 3,554
  • sloc: ansic: 73,108; sh: 3,681; makefile: 680; perl: 452; yacc: 288
file content (37 lines) | stat: -rwxr-xr-x 749 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
35
36
37
#!/bin/sh
#
# autogen.sh glue for Grisbi
# $Id: autogen.sh,v 1.1.2.12 2005/06/02 19:59:36 gegeweb Exp $
#
# Requires: automake, autoconf, dpkg-dev

if test -z "${PATH_AUTOMAKE}"
then
	PATH_AUTOMAKE=`ls -1d /usr/share/automake* 2>/dev/null | sort -gbu | tail -1`
fi

# Refresh GNU autotools toolchain.
for i in config.guess config.sub missing install-sh mkinstalldirs depcomp ; do
	test -r $PATH_AUTOMAKE/${i} && {
		rm -f ${i}
		cp $PATH_AUTOMAKE/${i} .
	}
	if test -r ${i} ; then
	    chmod 755 ${i}
	fi
done

if test -x /opt/local/share/aclocal
then
	aclocal -I /opt/local/share/aclocal -I macros
else
	aclocal -I macros
fi
autoheader
automake --verbose --foreign --add-missing --copy
autoconf

rm -rf autom4te.cache
chmod +x debian/rules

exit 0