3 # Copyright © 2011-2012, 2015, 2021-2023 Nick Bowler
5 # Simple script to get started from a fresh git checkout.
7 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8 # This is free software: you are free to do what the fuck you want to.
9 # There is NO WARRANTY, to the extent permitted by law.
13 err () { printf '%s: %s\n' "$scriptname" "$*" 1>&2; }
14 die () { err "$@"; exit 1; }
16 : ${AUTORECONF=autoreconf}
17 : ${AUTOMAKE=automake}
19 # Punt some automake-generated files so that Gentoo's wrapper script doesn't
20 # try to detect the automake version in use.
21 rm -f Makefile.in aclocal.m4
22 $AUTORECONF -fis || exit
24 amdir=`$AUTOMAKE --print-libdir`
25 if test -f "$amdir/INSTALL"; then
26 ln -sf "$amdir/INSTALL" INSTALL