-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·64 lines (58 loc) · 2 KB
/
bootstrap.sh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /bin/sh
# --------------------------------------------------------------------------
# Copyright 2002-2006 GridWay Team, Distributed Systems Architecture
# Group, Universidad Complutense de Madrid
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# --------------------------------------------------------------------------
clean_bt(){
make clean > /dev/null 2>&1
find -name .dirstamp -delete > /dev/null 2>&1
rm -rf `find -name .libs` > /dev/null 2>&1
rm -rf autom4te.cache > /dev/null 2>&1
rm Makefile > /dev/null 2>&1
rm doc/Makefile > /dev/null 2>&1
rm doc/docbook/Makefile > /dev/null 2>&1
rm src/Makefile > /dev/null 2>&1
rm autoscan.log config.status libtool configure.scan config.log > /dev/null 2>&1
rm makefile-header gpt_build_temp.sh> /dev/null 2>&1
rm src/drmaa/drmaa.jar > /dev/null 2>&1
}
clean_auto()
{
rm config/compile config/config.guess config/config.sub > /dev/null 2>&1
rm config/install-sh config/ltmain.sh config/missing config/ylwrap > /dev/null 2>&1
rm Makefile.in > /dev/null 2>&1
rm doc/Makefile.in > /dev/null 2>&1
rm doc/docbook/Makefile.in > /dev/null 2>&1
rm src/Makefile.in > /dev/null 2>&1
rm aclocal.m4 configure > /dev/null 2>&1
rm configure > /dev/null 2>&1
}
if [ "x$1" = "xclean" ] ; then
clean_bt
exit 0
fi
if [ "x$1" = "xclean_auto" ] ; then
clean_bt
clean_auto
exit 0
fi
if [ ! -d config ] ; then
mkdir config
autoscan
fi
libtoolize --force \
&& aclocal \
&& automake -i --foreign --copy --add-missing \
&& autoconf