File: autogen.sh

package info (click to toggle)
easyh10 1.5-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,400 kB
  • ctags: 1,022
  • sloc: ansic: 9,050; sh: 8,387; makefile: 77
file content (38 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# $Id: autogen.sh,v 1.4 2006/01/21 19:23:35 nyaochi Exp $

if [ "$1" = "--force" ];
then
    FORCE=--force
    NOFORCE=
    FORCE_MISSING=--force-missing
else
    FORCE=
    NOFORCE=--no-force
    FORCE_MISSING=
fi

aclocal || {
    echo "aclocal failed!"
    exit 1
}

libtoolize --copy $FORCE 2>&1 | sed '/^You should/d' || {
    echo "libtoolize failed!"
    exit 1
}

autoheader $FORCE || {
    echo "autoheader failed!"
    exit 1
}

automake -a -c $NOFORCE $FORCE_MISSING || {
    echo "automake failed!"
    exit 1
}

autoconf $FORCE || {
    echo "autoconf failed!"
    exit 1
}