10 echo "Usage: $prog [options...]"
11 echo " -f, --force Force run of \`autoconf' and \`autoheader'"
12 echo " -c, --conf Run \`configure' after bootstrapping"
13 echo " -h, --help Display usage information"
20 echo "${prog}: error: $*" >&2
25 while [[ $# > 0 ]]; do
44 die
"invalid argument \`${arg}'"
49 [[ -e configure.ac
]] || \
50 die
"this script must be run from top-level source directory"
52 if [[ ${force} == yes ||
! -e configure || configure.ac
-nt configure
]]; then
53 echo "bootstrapping..."
54 for tool
in auto
{conf
,header
}; do
55 ${tool} || die
"${tool} failed"
59 if [[ ${configure} == yes ]]; then
61 .
/configure
"$@" || die
"configure failed"
67 # vim: ts=8 sw=8 noet fdm=marker tw=80