File: autogen.sh

package info (click to toggle)
tcpick 0.2.1-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,164 kB
  • sloc: ansic: 2,557; sh: 931; makefile: 16
file content (47 lines) | stat: -rwxr-xr-x 1,166 bytes parent folder | download | duplicates (7)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
#

test -f configure.in || {
    echo "This directory does not look like the top-level directory. stop."
    exit 1
}

rm -rf config.cache autom4te*.cache aclocal.m4

echo "running "`autoheader --version | head -n 1` "..."
autoheader || {
    echo "autoheader failed. stop."
    exit 1
}

echo "running "`aclocal --version | head -n 1 ` "..."
aclocal --force $ACLOCAL_FLAGS 2> /dev/null || {
    echo "aclocal failed. stop."
    exit 1
}

echo "running "`automake --version | head -n 1` "..."
automake --foreign --include-deps --add-missing --copy || {
    echo "automake failed. stop."
    exit 1
}

echo "running "`autoconf --version | head -n 1` "..."
autoconf || {
    echo "autoconf failed. stop."
    exit 1
}
echo "running ./configure $* ..."
./configure > /dev/null $* || {
    echo "./configure failed. stop."
    exit 1
}

echo "Generating OPTIONS files"
man ./tcpick.8 | col -b > OPTIONS
man ./tcpick_italian.8 | col -b > OPTIONS.it

echo `cat configure.in | grep __VERSION | grep define| cut -f3 -d"[" | cut -f1 -d"]"` > VERSION
echo "tcpick version "`cat VERSION`" ready to be compiled"