Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # a quick hack script to generate necessary files from |
| 3 | # auto* tools. |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 4 | # |
| 5 | # WARNING: if you run this you will change the versions |
| 6 | # of the tools which are used and, maybe, required! |
Glenn Randers-Pehrson | a2218a4 | 2010-09-14 16:06:08 -0500 | [diff] [blame] | 7 | |
| 8 | # You can define your own replacements in your environment. |
| 9 | # $AUTOCONF, $AUTOMAKE, $AUTOHEADER, $AUTOPOINT, $ACLOCAL and $LIBTOOLIZE |
| 10 | |
Glenn Randers-Pehrson | a313751 | 2010-08-18 20:25:36 -0500 | [diff] [blame] | 11 | touch Makefile.am configure.ac |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 12 | { |
Glenn Randers-Pehrson | a2218a4 | 2010-09-14 16:06:08 -0500 | [diff] [blame] | 13 | LT=${LIBTOOLIZE-libtoolize} |
| 14 | echo "running $LT" >&2 |
| 15 | $LT --force --copy --automake |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 16 | } && { |
Glenn Randers-Pehrson | a2218a4 | 2010-09-14 16:06:08 -0500 | [diff] [blame] | 17 | AL=${ACLOCAL-aclocal} |
| 18 | echo "running $AL" >&2 |
| 19 | $AL |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 20 | } && { |
Glenn Randers-Pehrson | a2218a4 | 2010-09-14 16:06:08 -0500 | [diff] [blame] | 21 | AH=${AUTOHEADER-autoheader} |
| 22 | echo "running $AH [ignore the warnings]" >&2 |
| 23 | $AH |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 24 | } && { |
Glenn Randers-Pehrson | a2218a4 | 2010-09-14 16:06:08 -0500 | [diff] [blame] | 25 | AM=${AUTOMAKE-automake} |
| 26 | echo "running $AM" >&2 |
| 27 | $AM --force-missing --foreign -a -c |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 28 | } && { |
Glenn Randers-Pehrson | a2218a4 | 2010-09-14 16:06:08 -0500 | [diff] [blame] | 29 | AC=${AUTOCONF-autoconf} |
| 30 | echo "running $AC" >&2 |
| 31 | $AC |
Glenn Randers-Pehrson | c3d51c1 | 2006-03-02 07:23:18 -0600 | [diff] [blame] | 32 | } && |
Glenn Randers-Pehrson | a313751 | 2010-08-18 20:25:36 -0500 | [diff] [blame] | 33 | echo "autogen complete" >&2 || |
| 34 | echo "ERROR: autogen.sh failed, autogen is incomplete" >&2 |