Former-commit-id:6f374b35d0
[formerlybe96282207
] [formerly0be473728a
] [formerly6f374b35d0
[formerlybe96282207
] [formerly0be473728a
] [formerlyaaac0b51e5
[formerly0be473728a
[formerly 1f109861760e5fbc9d7a13cc4f518341cbc31276]]]] Former-commit-id:aaac0b51e5
Former-commit-id:bb30a41300
[formerlyf80f98cee2
] [formerly 4cfa5d11d7d7059b88534daa18142d24f3a6f481 [formerlybc439aee4f
]] Former-commit-id: 5c941816ce99cd7acc86ec8198a9c8d060f02007 [formerlyf1d156779a
] Former-commit-id:120fc26670
59 lines
941 B
Bash
Executable file
59 lines
941 B
Bash
Executable file
#!/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
|