~d-weatherley/esys-particle/2.2

86 by slatham
Added autogen.sh script for generating "configure" script.
1
#!/bin/sh
2
#
3
# Script for generating the autotools configure script
4
#
140 by slatham
Do libtoolize before aclocal and automake.
5
libtoolize --ltdl --force --copy --automake  # version >= 1.5.2
86 by slatham
Added autogen.sh script for generating "configure" script.
6
aclocal -I Config                     # version >= 1.8.2
7
autoheader                            # version >= 2.59
903 by vboros
New installation instructions specific to ESyS-Particle, and a change to autogen.sh so that automake does not overwrite build files (e.g., INSTALL) that already exist.
8
automake -a -c                        # version >= 1.8.2
86 by slatham
Added autogen.sh script for generating "configure" script.
9
autoconf                              # version >= 2.59
10
1018 by Steffen Abe
Added ESyS_particle version info to snapshots. Changed (unused) line 5 in the header to contain bzr revision number. Necessary bzrversion.h file is generated from autogen.sh.
11
# generate bzr revision header file
1023 by Steffen Abe
Fixed bug in generation of version header file.
12
if bzr version-info
13
then 
14
    bzr version-info --custom --template="static int s_bzr_revision={revno};\n" > bzrversion.h
15
    echo "bzr version header generated" 
1020 by Steffen Abe
Adjusted mechanism for version info in snapshots so that it also works without bzr tools present.
16
elif [ -e bzrversion.h ]
17
then echo "using existing bzrversion.h"
18
else 
1023 by Steffen Abe
Fixed bug in generation of version header file.
19
    echo "static int s_bzr_revision=-1;" > bzrversion.h
1020 by Steffen Abe
Adjusted mechanism for version info in snapshots so that it also works without bzr tools present.
20
    echo "writing dummy bzr revision -1 to header file"
1045 by Vince Boros
More undefined symbols have been removed. The tutorial scripts work again on Ubuntu 11.10.
21
fi