r7759 - in packages/trunk/game-data-packager: ! dirs' list truncated !
Jon Dowland
jmtd-guest at alioth.debian.org
Thu Jul 17 21:23:33 UTC 2008
Author: jmtd-guest
Date: 2008-07-17 21:23:32 +0000 (Thu, 17 Jul 2008)
New Revision: 7759
Added:
packages/trunk/game-data-packager/doom-common/DEBIAN/prerm.in
Removed:
packages/trunk/game-data-packager/doom-wad/DEBIAN/postinst
packages/trunk/game-data-packager/doom-wad/DEBIAN/prerm
packages/trunk/game-data-packager/doom2-wad/DEBIAN/postinst
packages/trunk/game-data-packager/doom2-wad/DEBIAN/prerm
Modified:
packages/trunk/game-data-packager/doom-common.mk
Log:
generalize prerm/postinst
Added: packages/trunk/game-data-packager/doom-common/DEBIAN/prerm.in
===================================================================
--- packages/trunk/game-data-packager/doom-common/DEBIAN/prerm.in (rev 0)
+++ packages/trunk/game-data-packager/doom-common/DEBIAN/prerm.in 2008-07-17 21:23:32 UTC (rev 7759)
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+ remove|deconfigure)
+ update-alternatives --remove IWAD \
+ /usr/share/games/game-data-packager/IWAD
+;;
+
+ upgrade|failed-upgrade)
+ ;;
+
+ *)
+ echo "unsupported method $1" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: packages/trunk/game-data-packager/doom-common/DEBIAN/prerm.in
___________________________________________________________________
Name: svn:executable
+ *
Modified: packages/trunk/game-data-packager/doom-common.mk
===================================================================
--- packages/trunk/game-data-packager/doom-common.mk 2008-07-17 21:14:46 UTC (rev 7758)
+++ packages/trunk/game-data-packager/doom-common.mk 2008-07-17 21:23:32 UTC (rev 7759)
@@ -3,7 +3,7 @@
$(IWAD)DEB=$(IWAD)-wad_$(VERSION)_all.deb
-$(IWAD)TARGETS := $(IWAD)-wad/DEBIAN/md5sums $(IWAD)-wad/DEBIAN/control $(IWAD)-wad/usr/share/doc/$(IWAD)-wad/changelog.gz $(IWAD)-wad/usr/share/pixmaps/$(IWAD).xpm
+$(IWAD)TARGETS := $(IWAD)-wad/DEBIAN/md5sums $(IWAD)-wad/DEBIAN/control $(IWAD)-wad/usr/share/doc/$(IWAD)-wad/changelog.gz $(IWAD)-wad/usr/share/pixmaps/$(IWAD).xpm $(IWAD)-wad/DEBIAN/postinst $(IWAD)-wad/DEBIAN/prerm
$($(IWAD)DEB): $($(IWAD)TARGETS) fixperms
if [ `id -u` -eq 0 ]; then \
@@ -12,6 +12,14 @@
fakeroot dpkg-deb -b $(IWAD)-wad $@; \
fi
+$(IWAD)-wad/DEBIAN/prerm:
+ m4 -DIWAD=$(IWAD).wad \
+ doom-common/DEBIAN/prerm.in > $(IWAD)-wad/DEBIAN/prerm
+
+$(IWAD)-wad/DEBIAN/postinst:
+ m4 -DIWAD=$(IWAD).wad \
+ doom-common/DEBIAN/postinst.in > $(IWAD)-wad/DEBIAN/postinst
+
$(IWAD)-wad/DEBIAN/control: doom-common/DEBIAN/control.in
m4 -DPACKAGE=$(IWAD)-wad -DGAME=$(IWAD) -DVERSION=$(VERSION) \
doom-common/DEBIAN/control.in > $(IWAD)-wad/DEBIAN/control
@@ -35,4 +43,4 @@
clean:
rm -f $($(IWAD)DEB) $($(IWAD)TARGETS)
-.PHONY: fixperms clean
+PHONY: fixperms clean
Deleted: packages/trunk/game-data-packager/doom-wad/DEBIAN/postinst
===================================================================
--- packages/trunk/game-data-packager/doom-wad/DEBIAN/postinst 2008-07-17 21:14:46 UTC (rev 7758)
+++ packages/trunk/game-data-packager/doom-wad/DEBIAN/postinst 2008-07-17 21:23:32 UTC (rev 7759)
@@ -1,34 +0,0 @@
-#!/bin/sh
-# postinst script for doom-wad
-set -e
-. /usr/share/debconf/confmodule
-# summary of how this script can be called:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-
-case "$1" in
- configure)
- update-alternatives --install \
- /usr/share/games/doom/doom.wad \
- doom.wad \
- /usr/share/games/game-data-packager/doom.wad \
- 50
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
-
- *)
- echo "unsupported method $1" >&2
- exit 1
- ;;
-esac
-
-
-
-exit 0
Deleted: packages/trunk/game-data-packager/doom-wad/DEBIAN/prerm
===================================================================
--- packages/trunk/game-data-packager/doom-wad/DEBIAN/prerm 2008-07-17 21:14:46 UTC (rev 7758)
+++ packages/trunk/game-data-packager/doom-wad/DEBIAN/prerm 2008-07-17 21:23:32 UTC (rev 7759)
@@ -1,32 +0,0 @@
-#!/bin/sh
-set -e
-
-# summary of how this script can be called:
-# * <prerm> `remove'
-# * <old-prerm> `upgrade' <new-version>
-# * <new-prerm> `failed-upgrade' <old-version>
-# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-# * <deconfigured's-prerm> `deconfigure' `in-favour'
-# <package-being-installed> <version> `removing'
-# <conflicting-package> <version>
-# for details, see /usr/share/doc/packaging-manual/
-
-case "$1" in
- remove|deconfigure)
- update-alternatives --remove \
- doom.wad \
- /usr/share/games/game-data-packager/doom.wad
-;;
-
- upgrade|failed-upgrade)
- ;;
-
- *)
- echo "unsupported method $1" >&2
- exit 1
- ;;
-esac
-
-
-
-exit 0
Deleted: packages/trunk/game-data-packager/doom2-wad/DEBIAN/postinst
===================================================================
--- packages/trunk/game-data-packager/doom2-wad/DEBIAN/postinst 2008-07-17 21:14:46 UTC (rev 7758)
+++ packages/trunk/game-data-packager/doom2-wad/DEBIAN/postinst 2008-07-17 21:23:32 UTC (rev 7759)
@@ -1,34 +0,0 @@
-#!/bin/sh
-# postinst script for doom2-wad
-set -e
-. /usr/share/debconf/confmodule
-# summary of how this script can be called:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-
-case "$1" in
- configure)
- update-alternatives --install \
- /usr/share/games/doom/doom2.wad \
- doom2.wad \
- /usr/share/games/game-data-packager/doom2.wad \
- 50
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
-
- *)
- echo "unsupported method $1" >&2
- exit 1
- ;;
-esac
-
-
-
-exit 0
Deleted: packages/trunk/game-data-packager/doom2-wad/DEBIAN/prerm
===================================================================
--- packages/trunk/game-data-packager/doom2-wad/DEBIAN/prerm 2008-07-17 21:14:46 UTC (rev 7758)
+++ packages/trunk/game-data-packager/doom2-wad/DEBIAN/prerm 2008-07-17 21:23:32 UTC (rev 7759)
@@ -1,32 +0,0 @@
-#!/bin/sh
-set -e
-
-# summary of how this script can be called:
-# * <prerm> `remove'
-# * <old-prerm> `upgrade' <new-version>
-# * <new-prerm> `failed-upgrade' <old-version>
-# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-# * <deconfigured's-prerm> `deconfigure' `in-favour'
-# <package-being-installed> <version> `removing'
-# <conflicting-package> <version>
-# for details, see /usr/share/doc/packaging-manual/
-
-case "$1" in
- remove|deconfigure)
- update-alternatives --remove \
- doom2.wad \
- /usr/share/games/game-data-packager/doom2.wad
-;;
-
- upgrade|failed-upgrade)
- ;;
-
- *)
- echo "unsupported method $1" >&2
- exit 1
- ;;
-esac
-
-
-
-exit 0
More information about the Pkg-games-commits
mailing list