File: autogen.sh

package info (click to toggle)
epdfview 0.1.7-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,456 kB
  • ctags: 2,816
  • sloc: cpp: 12,200; ansic: 8,960; sh: 4,791; makefile: 623; yacc: 288; xml: 71; sed: 16
file content (44 lines) | stat: -rw-r--r-- 920 bytes parent folder | download
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
#!/bin/sh
# Script to generate all required files for `configure' when
# starting from a fresh repository checkout.

ACLOCAL="aclocal -I m4"
AUTOCONF="autoconf"
AUTOHEADER="autoheader"
LIBTOOLIZE="libtoolize --automake"
AUTOMAKE="automake -a -c --foreign"

build () {
    echo -n "Building '$1'... "
    eval $`echo $2`
    if [ ! $? -eq 0 ]
    then
        echo "Failed!"
        exit 1
    fi
    echo "Done!"
}

# Clean up old files which could hurt otherwise.
rm -f config.cache config.log config.status

# Generate `aclocal.m4'.
rm -f aclocal.m4
build "aclocal.m4" "ACLOCAL"

# Generate `config.h.in'.
build "config.h.in" "AUTOHEADER"

# Generate `configure' from `configure.ac'.
build "configure" "AUTOCONF"

# Generate `ltmain.sh'.
#build "ltmain.sh" "LIBTOOLIZE"

# Generate `stamp-h1' and all `Makefile.in' files.
rm -f stamp-h1
build "Makefile templates" "AUTOMAKE"

echo
echo "Run './configure ; make'"
echo