3 # Generate autotool stuff, when code is checked out from SCM.
5 SCRIPT_INVOCATION_SHORT_NAME=${0##*/}
6 set -e # exit on errors
7 # trap ERR is bashism, do not change shebang!
8 trap 'echo "${SCRIPT_INVOCATION_SHORT_NAME}: exit on error"; exit 1' ERR
9 set -o pipefail # make pipe writer failure to cause exit on error
12 echo "${SCRIPT_INVOCATION_SHORT_NAME}: ${@}"
15 test -f src/cron.c || {
16 msg "You must run this script in the top-level cronie directory"
25 automake --add-missing $AM_OPTS
27 msg "Now type './configure' and 'make' to compile."