Build release using separate directories.
Don't build in the git repositories' directories - so they're always fresh and clean...
This commit is contained in:
+23
-8
@@ -1,10 +1,19 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd simgear
|
# remove old and create fresh build directories
|
||||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist
|
rm -rf sgBuild
|
||||||
|
rm -rf fgBuild
|
||||||
|
mkdir -p sgBuild
|
||||||
|
mkdir -p fgBuild
|
||||||
|
mkdir -p output
|
||||||
|
# clear output directory
|
||||||
|
rm -rf output/*
|
||||||
|
|
||||||
# first make source package (clean directory), finally compile
|
echo "Starting on SimGear"
|
||||||
make package_source
|
cd sgBuild
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist ../simgear
|
||||||
|
|
||||||
|
# compile
|
||||||
make
|
make
|
||||||
|
|
||||||
if [ $? -ne '0' ]; then
|
if [ $? -ne '0' ]; then
|
||||||
@@ -14,13 +23,16 @@ fi
|
|||||||
|
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
# build source package and copy to output
|
||||||
|
make package_source
|
||||||
|
cp simgear-*.tar.bz2 ../output/.
|
||||||
|
|
||||||
echo "Starting on FlightGear"
|
echo "Starting on FlightGear"
|
||||||
|
|
||||||
cd ../flightgear
|
cd ../fgBuild
|
||||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist ../flightgear
|
||||||
|
|
||||||
# first source package (clean directory), finally compile
|
# compile
|
||||||
make package_source
|
|
||||||
make
|
make
|
||||||
|
|
||||||
if [ $? -ne '0' ]; then
|
if [ $? -ne '0' ]; then
|
||||||
@@ -30,3 +42,6 @@ fi
|
|||||||
|
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
# build source package and copy to output
|
||||||
|
make package_source
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user