ddclient/autogen
Richard Hansen 6dfcede81a Ignore build-aux/config.guess, build-aux/config.sub
These currently aren't installed by `autoreconf --install`, but ignore
them anyway as a defensive measure.
2024-12-19 04:49:57 -05:00

22 lines
644 B
Bash
Executable file

#!/bin/sh
pecho() { printf %s\\n "$*"; }
log() { pecho "$@"; }
error() { log "ERROR: $@" >&2; }
fatal() { error "$@"; exit 1; }
try() { "$@" || fatal "'$@' failed"; }
try cd "${0%/*}"
# aclocal complains if a directory passed to AC_CONFIG_MACRO_DIR doesn't exist.
try mkdir -p build-aux/m4
# autoreconf's '--force' option doesn't affect any of the files installed by the '--install' option.
# Remove the files to truly force them to be updated.
try rm -f \
aclocal.m4 \
build-aux/config.guess \
build-aux/config.sub \
build-aux/install-sh \
build-aux/missing \
build-aux/tap-driver.sh \
;
try autoreconf -fviW all