]> git.draconx.ca Git - rarpd-dx.git/blob - bootstrap
Add description of -H option to the manual.
[rarpd-dx.git] / bootstrap
1 #!/bin/sh
2 #
3 # Copyright © 2011-2012, 2015, 2021-2023 Nick Bowler
4 #
5 # Simple script to get started from a fresh git checkout.
6 #
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.
10
11 scriptname=$0
12
13 err () { printf '%s: %s\n' "$scriptname" "$*" 1>&2; }
14 die () { err "$@"; exit 1; }
15
16 : ${AUTORECONF=autoreconf}
17 : ${AUTOMAKE=automake}
18
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
23
24 amdir=`$AUTOMAKE --print-libdir`
25 if test -f "$amdir/INSTALL"; then
26   ln -sf "$amdir/INSTALL" INSTALL
27 fi