This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 25fc7e0e9f3a89aff5d1151e599b5daf1d30a441
Author: Simon McVittie <s...@debian.org>
Date:   Fri Oct 14 12:30:37 2016 +0100

    Launcher: insert version at install time
    
    This is annoyingly ad-hoc, but I'm trying to keep the launcher a
    single-file executable so I can install it into packages like
    quake-server, which shouldn't depend on the full (GUI) runtime stuff.
---
 Makefile            | 7 +++++--
 runtime/launcher.py | 5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 5728c3b..eb4707d 100644
--- a/Makefile
+++ b/Makefile
@@ -416,7 +416,8 @@ install:
 
        mkdir -p $(DESTDIR)$(pkgdatadir)
        cp -ar game_data_packager/                             
$(DESTDIR)$(pkgdatadir)/
-       python3 -m game_data_packager.version $(RELEASE) >     
$(DESTDIR)$(pkgdatadir)/game_data_packager/version.py
+       python3 -m game_data_packager.version $(RELEASE) >     
out/installed-version.py
+       install -m0644 out/installed-version.py                
$(DESTDIR)$(pkgdatadir)/game_data_packager/version.py
        install -m0644 out/*.control.in                        
$(DESTDIR)$(pkgdatadir)/
        install -m0644 out/*.copyright                         
$(DESTDIR)$(pkgdatadir)/
        install -m0644 out/*.png                               
$(DESTDIR)$(pkgdatadir)/
@@ -429,7 +430,9 @@ install:
        install -m0644 out/vfs.zip                             
$(DESTDIR)$(pkgdatadir)/
 
        install -d                                             
$(DESTDIR)$(runtimedir)/
-       install runtime/launcher.py                            
$(DESTDIR)$(runtimedir)/gdp-launcher
+       sed -e '/^#__insert_version_here__/ r out/installed-version.py' \
+             < runtime/launcher.py                          > 
$(DESTDIR)$(runtimedir)/gdp-launcher
+       chmod 0755                                             
$(DESTDIR)$(runtimedir)/gdp-launcher
        install runtime/openurl.py                             
$(DESTDIR)$(runtimedir)/gdp-openurl
        install -m0644 $(launcher_desktops)                    
$(DESTDIR)$(runtimedir)/
        install -m0644 runtime/confirm-binary-only.txt         
$(DESTDIR)$(runtimedir)/
diff --git a/runtime/launcher.py b/runtime/launcher.py
index 808bdd6..5e1a9f1 100755
--- a/runtime/launcher.py
+++ b/runtime/launcher.py
@@ -31,7 +31,10 @@ import traceback
 import gi
 from gi.repository import (GLib, GObject)
 
-__version__ = '(uninstalled)'
+# edited automatically, be careful
+GAME_PACKAGE_VERSION = '(uninstalled)'
+GAME_PACKAGE_RELEASE = ''
+#__insert_version_here__
 
 if 'GDP_UNINSTALLED' in os.environ:
     RUNTIME_BUILT = './out'

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/game-data-packager.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to