awips2/rpms/awips2.qpid/build.sh
Steve Harris b0fb1f49be 13.4.1-1 baseline
Former-commit-id: 79567aac51 [formerly f95e0ad10b] [formerly 2f517b7713] [formerly 79567aac51 [formerly f95e0ad10b] [formerly 2f517b7713] [formerly 00332e6305 [formerly 2f517b7713 [formerly c03222bb480d87c05982b4d49f863e615b5b5584]]]]
Former-commit-id: 00332e6305
Former-commit-id: aecc3cfd89 [formerly 0e950655f1] [formerly fff69f92a60e6f16033e299ff1dd2395fac95290 [formerly 4accbb80db]]
Former-commit-id: 85465ead73fe31102e486ee012a5fcb51cfcc9b9 [formerly 4001e050e7]
Former-commit-id: 722e428c74
2013-04-24 17:15:55 -05:00

59 lines
941 B
Bash

#!/bin/bash
# determine where the script is
path_to_script=`readlink -f $0`
dir=$(dirname $path_to_script)
# this script will build both versions of qpid unless an argument is passed
# to it with the version of qpid to build.
function build018()
{
pushd . > /dev/null 2>&1
cd ${dir}/0.18/deploy.builder
if [ $? -ne 0 ]; then
return 1
fi
/bin/bash build.sh
if [ $? -ne 0 ]; then
return 1
fi
popd > /dev/null 2>&1
}
function build07()
{
pushd . > /dev/null 2>&1
cd ${dir}/0.7/deploy.builder
if [ $? -ne 0 ]; then
return 1
fi
/bin/bash build.sh
if [ $? -ne 0 ]; then
return 1
fi
popd > /dev/null 2>&1
}
VERSION_TO_BUILD="${1}"
if [ "${1}" = "0.7" ]; then
build07
exit $?
fi
if [ "${1}" = "0.18" ]; then
build018
exit $?
fi
# no version specified; build both
build07
if [ $? -ne 0 ]; then
exit 1
fi
build018
if [ $? -ne 0 ]; then
exit 1
fi
exit 0