summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/ubuntu/ubuntu-install
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-15 05:08:05 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-15 05:08:05 +0000
commitfe52f0dc5830614a303ab0531488a02c026edbc1 (patch)
tree2d8f5009e8bd29e91f294938bd97db307697f5af /sca-cpp/trunk/ubuntu/ubuntu-install
parent911db2d64f7af7b845bb795db2ed09abd9be2e09 (diff)
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
Diffstat (limited to 'sca-cpp/trunk/ubuntu/ubuntu-install')
-rwxr-xr-xsca-cpp/trunk/ubuntu/ubuntu-install16
1 files changed, 13 insertions, 3 deletions
diff --git a/sca-cpp/trunk/ubuntu/ubuntu-install b/sca-cpp/trunk/ubuntu/ubuntu-install
index 0cb688ea39..26088745e2 100755
--- a/sca-cpp/trunk/ubuntu/ubuntu-install
+++ b/sca-cpp/trunk/ubuntu/ubuntu-install
@@ -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