Upgrade build scripts to on Ubuntu 10.04.

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@997186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jsdelfino 2010-09-15 05:08:05 +00:00
commit fe52f0dc58
10 changed files with 87 additions and 34 deletions

View file

@ -22,6 +22,9 @@
# Display commands as they are executed
set -x
# Get the Ubuntu version
osver=`cat /etc/issue | awk '{ print $2 }'`
# Build and install in the current directory
build=`pwd`
@ -58,9 +61,16 @@ if [ "$?" != "0" ]; then
fi
# Install TraceMonkey
sudo apt-get -y install xulrunner-1.9.1 xulrunner-1.9.1-dev
if [ "$?" != "0" ]; then
exit $?
if [ "$osver" = "9.10" ]; then
sudo apt-get -y install xulrunner-1.9.1 xulrunner-1.9.1-dev
if [ "$?" != "0" ]; then
exit $?
fi
else
sudo apt-get -y install xulrunner-1.9.2 xulrunner-1.9.2-dev
if [ "$?" != "0" ]; then
exit $?
fi
fi
# Install Python