]> granicus.if.org Git - cronie/blob - autogen.sh
do not log carriage return
[cronie] / autogen.sh
1 #!/bin/bash
2 #
3 # Generate autotool stuff, when code is checked out from SCM.
4
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
10
11 msg() {
12         echo "${SCRIPT_INVOCATION_SHORT_NAME}: ${@}"
13 }
14
15 test -f src/cron.c || {
16         msg "You must run this script in the top-level cronie directory"
17         exit 1
18 }
19
20 rm -rf autom4te.cache
21
22 aclocal $AL_OPTS
23 autoconf $AC_OPTS
24 autoheader $AH_OPTS
25 automake --add-missing $AM_OPTS
26
27 msg "Now type './configure' and 'make' to compile."
28
29 exit 0