[Pkg-cli-apps-commits] [SCM] openbve branch, master, updated. debian/1.4.0.0-1-20-g24df88c

Paul Sladen debian at paul.sladen.org
Wed Jan 18 10:18:29 UTC 2012


The following commit has been merged in the master branch:
commit 659276a838298415274b490ecfe0c3abc32ce0b5
Author: Paul Sladen <debian at paul.sladen.org>
Date:   Wed Jan 18 11:14:36 2012 +0100

    Document the Release/Debug configuration and why debian/rules is used
    for installation instead of debian/*.install (thanks to rfs-feedback)

diff --git a/debian/README.source b/debian/README.source
index 8ea61c1..d0b68f7 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -92,6 +92,22 @@ The following Python can be used to print the contents in ASCII-art form:
     .read(128)))).replace('0b','\n').replace('0','  ').replace('1','**')"
 
 
+Debug/Release configuration
+
+The Mono xbuild system has a figured arrangement of directories, which
+are different for release and debug builds.  In testing it may be
+necessary to swap between the configurations to add with debugging and
+follow-up with upstream.  This is changable at the top of 'debian/rules':
+
+  #DEBUG_CONFIGURATION=Debug
+  DEBUG_CONFIGURATION=Release
+
+Note that because of the change in directory structure, the resulting
+output files are installed further down the debian/rules file, rather
+than from debian/*.install which does not have the necessary
+flexibility.
+
+
 Commit changelog:
 
   git checkout -f upstream
diff --git a/debian/rules b/debian/rules
index e479521..b630655 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,8 @@ override_dh_clean:
 
 override_dh_install:
 	dh_install
+	# NOTE: these are here, rather than in debian/*.install because it is not
+	# possible to switch between the setting of $(DEBUG_CONFIGURATION) otherwise
 	install -m 755 $(CURDIR)/openBVE/OpenBve/bin/$(DEBUG_CONFIGURATION)/OpenBve.exe $(EXEC_TARGET)
 	#install -m 644 $(CURDIR)/openBVE/OpenBve/bin/$(DEBUG_CONFIGURATION)/OpenBve.exe.mdb $(EXEC_TARGET)
 	install -m 755 $(CURDIR)/openBVE/OpenBveApi/bin/$(DEBUG_CONFIGURATION)/OpenBveApi.dll $(EXEC_TARGET)

-- 
openbve



More information about the Pkg-cli-apps-commits mailing list