[SCM] Installer for game data files branch, master, updated. f00001f0a1e6fe4d8ee7148b69ea7ed637a2d2d4

Simon McVittie smcv at debian.org
Thu Jul 14 13:18:50 UTC 2011


The following commit has been merged in the master branch:
commit f00001f0a1e6fe4d8ee7148b69ea7ed637a2d2d4
Author: Simon McVittie <smcv at debian.org>
Date:   Thu Jul 14 14:15:27 2011 +0100

    Add a dummy shell script to each of quake-armagon and quake-dissolution, which the corresponding .desktop files can use as their TryExec field to hide uninstalled mission packs

diff --git a/debian/changelog b/debian/changelog
index efc7081..b80f997 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,9 @@ game-data-packager (29) UNRELEASED; urgency=low
     - add new function verify_md5sum_alternatives, and a regression test
   * Allow Quake 1.01 CDs' LHA archives to contain upper-case filenames
     (jlha seems to produce upper-case from my CD)
+  * Add a dummy shell script to each of quake-armagon and quake-dissolution,
+    which the corresponding .desktop files can use as their TryExec field
+    to hide uninstalled mission packs
 
  -- Simon McVittie <smcv at debian.org>  Thu, 14 Jul 2011 09:07:30 +0100
 
diff --git a/quake.mk b/quake.mk
index eccc820..97c4ccd 100644
--- a/quake.mk
+++ b/quake.mk
@@ -11,6 +11,11 @@ $(QUAKEDEB): \
 	$(builddir)/$(PACKAGE)/DEBIAN/control \
 	fixperms
 	install -d $(builddir)/$(PACKAGE)/usr/share/games/quake/$(FOLDER)
+	if [ "$(FOLDER)" = hipnotic ] || [ "$(FOLDER)" = rogue ]; then \
+		printf '#!/bin/sh\nexit 0\n' > $(builddir)/$(PACKAGE)/usr/share/games/quake/$(FOLDER)-tryexec.sh; \
+		chmod 0755 $(builddir)/$(PACKAGE)/usr/share/games/quake/$(FOLDER)-tryexec.sh; \
+	fi
+
 	cd $(builddir) && \
 	if [ `id -u` -eq 0 ]; then \
 		dpkg-deb -b $(PACKAGE) $@ ; \

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list