forked from ForestClaw/forestclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·50 lines (41 loc) · 1.27 KB
/
bootstrap
File metadata and controls
executable file
·50 lines (41 loc) · 1.27 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh
# Call this without arguments if forestclaw is the toplevel package.
# Call this with two arguments if forestclaw is itself a subdirectory:
# ./bootstrap <sc config directory> <p4est config directory>
# RUNNING BOOTSTRAP FOR LIBSC
# override by option argument
SC_CONFIG="sc/config"
if test -n "$1" ; then
SC_CONFIG="$1"
if test ! -d "$SC_CONFIG" ; then
echo "Cannot find directory $SC_CONFIG"
exit 1
fi
fi
# convert into an absolute path
SC_CONFIG=`cd "$SC_CONFIG" && pwd`
if test -x "sc/bootstrap" ; then
echo "Running bootstrap in subdirectory sc"
(cd sc && ./bootstrap)
fi
# RUNNING BOOTSTRAP FOR P4EST
#override by option argument
P4EST_CONFIG="p4est/config"
if test -n "$2" ; then
P4EST_CONFIG="$2"
if test ! -d "$P4EST_CONFIG" ; then
echo "Cannot find directory $P4EST_CONFIG"
exit
fi
fi
#convert into an absolute path
P4EST_CONFIG=`cd "$P4EST_CONFIG" && pwd`
if test -x "p4est/bootstrap" ; then
echo "Running bootstrap in subdirectory p4est"
(cd p4est && ./bootstrap "$SC_CONFIG")
fi
echo "--- This is the bootstrap script for ForestClaw calling autoreconf ---"
echo "It is NOT required to run bootstrap to build from a tar.gz archive"
echo "Current directory is $PWD"
rm -rf autom4te.cache
autoreconf -i -I "$SC_CONFIG" -I "$P4EST_CONFIG"