File: autogen.sh

package info (click to toggle)
esys-particle 2.3.4%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,036 kB
  • ctags: 10,805
  • sloc: cpp: 80,009; python: 5,872; makefile: 1,243; sh: 313; perl: 225
file content (22 lines) | stat: -rwxr-xr-x 821 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Script for generating the autotools configure script
#

libtoolize --ltdl --force --copy --automake  # version >= 1.5.2
aclocal -I Config                     # version >= 1.11 for Python 3, 1.8.2 for Python 2.6-2.7
autoheader                            # version >= 2.59
automake -a -c                        # version >= 1.11 for Python 3, 1.8.2 for Python 2.6-2.7
autoconf                              # version >= 2.59

# generate bzr revision header file
if bzr version-info
then 
    bzr version-info --custom --template="static int s_bzr_revision={revno};\n" > bzrversion.h
    echo "bzr version header generated" 
elif [ -e bzrversion.h ]
then echo "using existing bzrversion.h"
else 
    echo "static int s_bzr_revision=-1;" > bzrversion.h
    echo "writing dummy bzr revision -1 to header file"
fi