-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunconfig
More file actions
executable file
·63 lines (46 loc) · 1.28 KB
/
runconfig
File metadata and controls
executable file
·63 lines (46 loc) · 1.28 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
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
if [ "x$gbtools_host_name" == "x" ]; then
gbtools_host_name=$(hostname)
fi
# Make a prefix.
# Usage your_var=$(gbtools_make_prefix)
function gbtools_make_prefix
{
now=$(date +%H:%M:%S)
$ECHO "[$gbtools_host_name $SCRIPT_NAME ($now)] $@"
}
# Usage: gbtools_message_err Your Message
function gbtools_message_err
{
$ECHO "$(gbtools_make_prefix) $@" >&2
}
# Usage: gbtools_message_exit Your Message
function gbtools_message_exit
{
gbtools_message_err "$@"
exit 1;
}
INSTALL_DIR=$1
SCRIPT_NAME=$(basename $0)
INITIAL_DIR=$(pwd)
SCRIPT_DIR=$(dirname $0)
if ! echo $SCRIPT_DIR | egrep -q "(^)/" ; then
BASE_DIR=$INITIAL_DIR/$SCRIPT_DIR
else
BASE_DIR=$SCRIPT_DIR
fi
# It's possible to override settings from Makefile.am and configure.ac
# by setting these two variables, e.g. export CXXFLAGS='-std=c++0x -g' etc.
export CXXFLAGS=''
export LDFLAGS=''
# run the configure.......watch out for the quoting, sometimes we want the variable to
# be interpreted as a single cmdline arg, sometimes as multiple ones.
$BASE_DIR/configure \
$INSTALL_DIR \
"$CC_param" "$CFLAGS_param" "$LDFLAGS_param" "$@" || message_exit "configure script failed."
#
# This adds the subdirectories to the build directory.
#
#ln -s ../../htslib-develop
#cp -r $BASE_DIR/gbtoolsGUI .
exit 0