diff options
author | Daniel Santos <daniel.santos@pobox.com> | 2021-10-11 23:58:22 -0500 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2021-10-14 23:11:20 +0200 |
commit | 8173ed8cb62f22ca2ebb33a63b5b9954afb20d7e (patch) | |
tree | 4263ebd97466328b6ced984153c3b42036060203 /autotools/autogen.sh | |
parent | 1d52554cb1023bed428d71bb3b051d2fbab4327c (diff) | |
download | lolcat-8173ed8cb62f22ca2ebb33a63b5b9954afb20d7e.tar.gz lolcat-8173ed8cb62f22ca2ebb33a63b5b9954afb20d7e.tar.bz2 lolcat-8173ed8cb62f22ca2ebb33a63b5b9954afb20d7e.zip |
build: Add autotools option for those who want it
Closes #40.
Diffstat (limited to 'autotools/autogen.sh')
-rwxr-xr-x | autotools/autogen.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/autotools/autogen.sh b/autotools/autogen.sh new file mode 100755 index 0000000..1f3109d --- /dev/null +++ b/autotools/autogen.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +auxdir=autoscripts + +set -x + +# aclocal generated files +rm -rf aclocal.m4 autom4te.cache + +# autoheader generated files +rm -f config.h.in + +# autoconf generated files +rm -f configure + +# automake generated files +rm -f ${auxdir}/{config.guess,config.sub,depcomp,install-sh,missing} +rm -f Makefile.in + +# configure generated files +rm -f config.h config.log config.status Makefile Makefile.in stamp-h1 + +rm -f $(find ${auxdir} -type l 2>/dev/null) +rmdir ${auxdir} 2>/dev/null + +if [[ "$1" == clean ]]; then + exit 0 +fi + +mkdir ${auxdir} 2>/dev/null + +aclocal +autoheader +autoconf +automake --add-missing + |