forked from ProteoWizard/pwiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quickbuild.sh
executable file
·41 lines (36 loc) · 1.13 KB
/
quickbuild.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
#!/bin/sh
set -e
#
# script for getting bjam and ProteoWizard up and running
#
# Get the location of quickbuild.sh and drop trailing slash
PWIZ_ROOT=$(pwd)
if [ ! -e $PWIZ_ROOT/quickbuild.sh ]; then
echo "quickbuild.sh must be run from the directory it resides in - quitting"
exit 1
fi
# per platform in case of multi OS shared volume (VMware etc)
BOOST_BUILD_PATH=$PWIZ_ROOT/libraries/boost-build
PWIZ_BJAM_PATH=$BOOST_BUILD_PATH/src/engine/bin/$(uname -s)
PWIZ_BJAM=$PWIZ_BJAM_PATH/b2
# Build local copy of bjam
if [ ! -e $PWIZ_BJAM ]; then
echo "Building bjam..."
cd $BOOST_BUILD_PATH/src/engine
sh build.sh
mkdir -p $PWIZ_BJAM_PATH
cp -f $BOOST_BUILD_PATH/src/engine/b2 $PWIZ_BJAM
fi
#if $(hash setarch > /dev/null 2>&1); then
# ADDRESS_MODEL=$(expr "$*" : '.*address-model=\([36][24]\).*');
# if [ $ADDRESS_MODEL ]; then
# SETARCH="setarch linux$ADDRESS_MODEL";
# fi
#fi
# Do full build of ProteoWizard, passing quickbuild's arguments to bjam
echo "Building pwiz..."
cd $PWIZ_ROOT
if ! BOOST_BUILD_PATH=$BOOST_BUILD_PATH $PWIZ_BJAM "$@"; then
echo "At least one pwiz target failed to build."
exit 1
fi