| 1 | #! /bin/sh |
| 2 | # a quick hack script to generate necessary files from |
| 3 | # auto* tools. |
| 4 | # |
| 5 | # WARNING: if you run this you will change the versions |
| 6 | # of the tools which are used and, maybe, required! |
| 7 | touch Makefile.am configure.ac |
| 8 | { |
| 9 | echo "running libtoolize" >&2 |
| 10 | libtoolize --copy --automake |
| 11 | } && { |
| 12 | echo "running aclocal" >&2 |
| 13 | aclocal |
| 14 | } && { |
| 15 | echo "running autoheader [ignore the warnings]" >&2 |
| 16 | autoheader |
| 17 | } && { |
| 18 | echo "running automake" >&2 |
| 19 | automake --foreign -a -c |
| 20 | } && { |
| 21 | echo "running autoconf" >&2 |
| 22 | autoconf |
| 23 | } && |
| 24 | echo "autogen complete" >&2 || |
| 25 | echo "ERROR: autogen.sh failed, autogen is incomplete" >&2 |