From 90981cbb9c664002bf7d5e22521fcf6c3796f7b3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 9 Jan 2011 22:49:52 +0000 Subject: [PATCH] Initial release build script for Linux --- .gitignore | 2 ++ hudson_build_release.sh | 30 +++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36d3a9c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist +.DS_Store diff --git a/hudson_build_release.sh b/hudson_build_release.sh index f50cbf1..a91f480 100755 --- a/hudson_build_release.sh +++ b/hudson_build_release.sh @@ -1,2 +1,30 @@ #!/bin/sh -echo "Write me!" + +cd simgear +./autogen.sh +./configure --prefix=$WORKSPACE/dist --with-osg=$WORKSPACE/dist + +make + +if [ $? -ne '0' ]; then + echo "make simgear failed" + exit 1 +fi + +make install +make dist + +echo "Starting on FlightGear" + +cd ../flightgear +./autogen.sh +./configure --prefix=$WORKSPACE/dist --with-osg=$WORKSPACE/dist +make + +if [ $? -ne '0' ]; then + echo "make flightgear failed" + exit 1 +fi + +make install +make dist