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