File: bootstrap

package info (click to toggle)
hepmc 2.06.09-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,548 kB
  • sloc: sh: 9,138; cpp: 8,115; ansic: 682; makefile: 217; csh: 6; fortran: 4
file content (36 lines) | stat: -rwxr-xr-x 838 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
#! /bin/sh

set -x
# cleanup should not be necessary
# however, in some cases strange results are found if you do not start clean
rm -rf autom4te.cache
rm -f aclocal.m4
rm -f Makefile.in */Makefile.in */defs.h.in
rm -f missing install-sh depcomp 
rm -f configure config.*
rm -f ltmain.sh
# run autotool commands
OS=`uname`
if [ $OS = "Darwin" ]; then
  glibtoolize --copy
  OSname=`uname -s`
else
  libtoolize --copy
  OSname=`uname -o`
fi
aclocal 
m4dir=`aclocal --print-ac-dir`
if [ -f $m4dir/libtool.m4 ]; then
   cat $m4dir/libtool.m4 >> aclocal.m4
fi
autoheader
automake --add-missing --copy
autoconf

# To avoid confusing people with failures in the documentation build, 
# build documents during the bootstrap process.
if [ $OSname != "Cygwin" ]; then
  cd doc; ./buildDoc.sh
fi

# ready to make a source code distribution tarball