1
0
Fork 0
fgmeta/hudson_build_release.sh
ThorstenB b894a457d7 Build release using separate directories.
Don't build in the git repositories' directories - so
they're always fresh and clean...
2012-01-18 00:32:16 +01:00

47 lines
753 B
Bash
Executable file

#!/bin/sh
# remove old and create fresh build directories
rm -rf sgBuild
rm -rf fgBuild
mkdir -p sgBuild
mkdir -p fgBuild
mkdir -p output
# clear output directory
rm -rf output/*
echo "Starting on SimGear"
cd sgBuild
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist ../simgear
# compile
make
if [ $? -ne '0' ]; then
echo "make simgear failed"
exit 1
fi
make install
# build source package and copy to output
make package_source
cp simgear-*.tar.bz2 ../output/.
echo "Starting on FlightGear"
cd ../fgBuild
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist ../flightgear
# compile
make
if [ $? -ne '0' ]; then
echo "make flightgear failed"
exit 1
fi
make install
# build source package and copy to output
make package_source