File: autogen.sh

package info (click to toggle)
dancer-ircd 1.0.36-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 3,204 kB
  • ctags: 2,703
  • sloc: ansic: 36,121; sh: 3,534; perl: 612; makefile: 307
file content (29 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# For the lazy people, this does all the auto* stuff needed before
# ./configure && make will work
# (This is a maintainer script; it should never have to be run on
#  a distributed tarball)

set -e

if [ -f development ]
then
    # Symlinks
    ${ACLOCAL:-aclocal} -I autoconf
    ${AUTOHEADER:-autoheader}
    ${AUTOMAKE:-automake} -a
    ${AUTOCONF:-autoconf}
else
    # No symlinks
    ${ACLOCAL:-aclocal} -I autoconf
    ${AUTOHEADER:-autoheader}
    ${AUTOMAKE:-automake} -a -c
    ${AUTOCONF:-autoconf}
fi

# If it exists and is executable, recheck and regenerate
test -x config.status && ./config.status --recheck
test -x config.status && ./config.status

# Exit true if we got this far
exit 0