From 427964586c31ca0203fa1ec5c9c9e86f68a79de7 Mon Sep 17 00:00:00 2001
From: ThorstenB <brehmt@gmail.com>
Date: Tue, 17 Jan 2012 23:43:12 +0100
Subject: [PATCH] Fix jenkins release build script Properly build the source
 package.

---
 flightgear              | 2 +-
 hudson_build_release.sh | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/flightgear b/flightgear
index 979fc97..0c78392 160000
--- a/flightgear
+++ b/flightgear
@@ -1 +1 @@
-Subproject commit 979fc9785b2f91e1a7551dc1cd28743e2310759a
+Subproject commit 0c78392cc0112a3b5cb9312ab8039693994877c9
diff --git a/hudson_build_release.sh b/hudson_build_release.sh
index 710b8ef..d94046d 100755
--- a/hudson_build_release.sh
+++ b/hudson_build_release.sh
@@ -3,6 +3,8 @@
 cd simgear
 cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist
 
+# first make source package (clean directory), finally compile
+make package_source
 make
 
 if [ $? -ne '0' ]; then
@@ -11,12 +13,14 @@ if [ $? -ne '0' ]; then
 fi
 
 make install
-make dist
 
 echo "Starting on FlightGear"
 
 cd ../flightgear
 cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist
+
+# first source package (clean directory), finally compile
+make package_source
 make
 
 if [ $? -ne '0' ]; then
@@ -25,4 +29,4 @@ if [ $? -ne '0' ]; then
 fi
 
 make install
-make dist
+