build: added _build/ to POTFILES.skip
[adg.git] / autogen.sh
blobffcb3414196e16c8f883d8f8cadd8bd963162391
1 #!/bin/sh
3 # Run this to generate the configuration scripts after a fresh
4 # repository clone/checkout.
6 # This script does *not* call configure (as usually done in other
7 # projects) because this would prevent VPATH builds.
9 step() {
10 local message="$1"
11 local command="$2"
13 printf "$message... "
15 if eval $command >/dev/null 2>&1; then
16 printf "\033[32mok\033[0m\n"
17 else
18 local result=$?
19 printf "\033[31mfailed\033[0m\n ** \"$command\" returned $result\n"
20 exit $result
25 srcdir=`dirname $0`
26 test -z "$srcdir" && srcdir=.
28 step "Checking for top-level adg directory" \
29 "test -f '$srcdir/configure.ac' -a -f '$srcdir/src/adg.h.in'"
31 cd "$srcdir"
33 step "Creating dummy ChangeLog, if needed" \
34 "test -f './ChangeLog' || touch './ChangeLog'"
36 # Not sure if I can remove these, they seem to be old relics
37 step "Calling internationalization scripts" \
38 "glib-gettextize -f && intltoolize -f"
40 # autoreconf interaction with libtool has been broken for ages:
41 # explicitely calling libtoolize seems to avoid some problem
42 step "Calling libtoolize" \
43 "libtoolize --automake"
45 step "Regenerating autotools files" \
46 "autoreconf -isf -Wall"
49 printf "Now run \033[1m./configure\033[0m to customize your building\n"