root/tags/release-0.1.3/autogen.sh

Revision 2, 0.9 kB (checked in by jordi, 3 years ago)

Added the initial source layout with autotools and gettext support. Still no code for the project.

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Script to generate all required files for `configure' when
3# starting from a fresh repository checkout.
4
5ACLOCAL="aclocal -I m4"
6AUTOCONF="autoconf"
7AUTOHEADER="autoheader"
8LIBTOOLIZE="libtoolize --automake"
9AUTOMAKE="automake -a -c --foreign"
10
11function build {
12    echo -n "Building '$1'... "
13    eval $`echo $2`
14    if [ ! $? -eq 0 ]
15    then
16        echo "Failed!"
17        exit 1
18    fi
19    echo "Done!"
20}
21
22# Clean up old files which could hurt otherwise.
23rm -f config.cache config.log config.status
24
25# Generate `aclocal.m4'.
26rm -f aclocal.m4
27build "aclocal.m4" "ACLOCAL"
28
29# Generate `config.h.in'.
30build "config.h.in" "AUTOHEADER"
31
32# Generate `configure' from `configure.ac'.
33build "configure" "AUTOCONF"
34
35# Generate `ltmain.sh'.
36#build "ltmain.sh" "LIBTOOLIZE"
37
38# Generate `stamp-h1' and all `Makefile.in' files.
39rm -f stamp-h1
40build "Makefile templates" "AUTOMAKE"
41
42echo
43echo "Run './configure ; make'"
44echo
Note: See TracBrowser for help on using the browser.