-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·36 lines (33 loc) · 863 Bytes
/
bootstrap
File metadata and controls
executable file
·36 lines (33 loc) · 863 Bytes
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" ] && [ -z "$HEPMC_NODOC" ]; then
cd doc; ./buildDoc.sh
fi
# ready to make a source code distribution tarball