From 2c24a6d006dc9d2e7174af049b5bbb097ee7fb8e Mon Sep 17 00:00:00 2001
From: Julien Bonjean <julien@bonjean.info>
Date: Wed, 20 May 2009 17:07:31 -0400
Subject: [PATCH] [#1456] Added version dependancy handling

---
 tools/build-system/launch-build-machine.sh        | 6 +++---
 tools/build-system/remote/build-package-ubuntu.sh | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tools/build-system/launch-build-machine.sh b/tools/build-system/launch-build-machine.sh
index 5fbdaad17f..a8833ff44c 100755
--- a/tools/build-system/launch-build-machine.sh
+++ b/tools/build-system/launch-build-machine.sh
@@ -7,7 +7,7 @@
 # Author: Julien Bonjean (julien@bonjean.info) 
 #
 # Creation Date: 2009-04-20
-# Last Modified: 2009-05-19 10:11:53 -0400
+# Last Modified: 2009-05-19 17:49:40 -0400
 #####################################################
 
 #
@@ -252,7 +252,7 @@ if [ ${DO_PREPARE} ]; then
 	if [ ${RELEASE_MODE} ]; then
                 
                 echo "Switch to master branch for commit"
-                git checkout master
+                git checkout -f master
         fi
 
 	echo " Doing commit"
@@ -271,7 +271,7 @@ if [ ${DO_PREPARE} ]; then
 	if [ ${RELEASE_MODE} ]; then
 		echo "Switch back to release branch"
 		git checkout release
-		git merge master
+		# git merge master
 	fi
 	
 	echo "Archiving repository"
diff --git a/tools/build-system/remote/build-package-ubuntu.sh b/tools/build-system/remote/build-package-ubuntu.sh
index e975f6833e..978ac48600 100755
--- a/tools/build-system/remote/build-package-ubuntu.sh
+++ b/tools/build-system/remote/build-package-ubuntu.sh
@@ -105,7 +105,8 @@ fi
 echo "Generate control files"
 cp ${REPOSITORY_SFLPHONE_COMMON_DIR}/debian/control.$OS_VERSION ${REPOSITORY_SFLPHONE_COMMON_DIR}/debian/control && \
  # cp ${REPOSITORY_SFLPHONE_CLIENT_KDE_DIR}/debian/control.$OS_VERSION ${REPOSITORY_SFLPHONE_CLIENT_KDE_DIR}/debian/control && \
- cp ${REPOSITORY_SFLPHONE_CLIENT_GNOME_DIR}/debian/control.$OS_VERSION ${REPOSITORY_SFLPHONE_CLIENT_GNOME_DIR}/debian/control
+ cp ${REPOSITORY_SFLPHONE_CLIENT_GNOME_DIR}/debian/control.$OS_VERSION ${REPOSITORY_SFLPHONE_CLIENT_GNOME_DIR}/debian/control && \
+ find ${REPOSITORY_DIR} -name "control" -exec sed -i "s/VERSION/${FULL_VERSION}/g" {} \;
 
 if [ "$?" -ne "0" ]; then
         echo "!! Cannot generate control files"
-- 
GitLab