[SCM] packaging for the mame arcade game emulator branch, master, updated. c01e960d92e96e050d6fcf2edcd1db6454c66191

Emmanuel Kasper emmanuel at libera.cc
Wed Apr 4 13:01:09 UTC 2012


The following commit has been merged in the master branch:
commit 6d0c77edac6cf78e2fbe6e71e64836a51fb40623
Author: Emmanuel Kasper <emmanuel at libera.cc>
Date:   Wed Apr 4 14:01:03 2012 +0200

    Remove the mame.preinst and sdlmame.preinst
    
    the cases these two fiels deal should have been taken care by previous upgrades

diff --git a/debian/mame.preinst b/debian/mame.preinst
deleted file mode 100644
index 4c3c1de..0000000
--- a/debian/mame.preinst
+++ /dev/null
@@ -1,62 +0,0 @@
-#! /bin/sh
-
-# preinst script for mame
-# (c) Copyright 2012 Debian Games Team
-#
-# Licensed under the GNU General Public License, version 2.  See the file
-# /usr/share/common-licenses/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
-
-set -e
-
-# summary of how this script can be called:
-#        * <new-preinst> `install'
-#        * <new-preinst> `install' <old-version>
-#        * <new-preinst> `upgrade' <old-version>
-#        * <old-preinst> `abort-upgrade' <new-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-INI="/etc/mame/mame.ini"
-OLDMD5="7af600a8acb389a87ecff54b5bf53771 faf5639e834d50ef8067bf014aa43d96"
-
-case "$1" in
-    install)
-    ;;
-
-    upgrade)
-        # Sweep out wrong directories /usr/share/*/mame-base/
-        if dpkg --compare-versions "$2" lt "0.138u1"; then
-            rm -rf /usr/share/games/mame-base/
-            rm -rf /usr/share/doc/mame-base/
-        fi
-        # Avoid a dpkg prompt if mame.ini is what 0.141-2 generated in postinst
-        if dpkg --compare-versions "$2" le "0.141-2"; then
-            if [ -e -f "$INI" ]; then
-                curmd5="$(md5sum $INI | cut -d' ' -f 1)"
-                for md5sum in $OLDMD5; do
-                    if [ "$curmd5" = "$md5sum" ]; then
-                        rm -f $INI
-                        break
-                    fi
-                done
-            fi
-        fi
-    ;;
-
-    abort-upgrade)
-    ;;
-
-    *)
-        echo "preinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff --git a/debian/sdlmame.preinst b/debian/sdlmame.preinst
deleted file mode 100644
index 5773d12..0000000
--- a/debian/sdlmame.preinst
+++ /dev/null
@@ -1,74 +0,0 @@
-#! /bin/sh
-
-# preinst script for sdlmame
-# (c) Copyright 2007 Debian Games Team
-#
-# Licensed under the GNU General Public License, version 2.  See the file
-# /usr/share/common-licenses/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
-
-set -e
-
-# summary of how this script can be called:
-#        * <new-preinst> `install'
-#        * <new-preinst> `install' <old-version>
-#        * <new-preinst> `upgrade' <old-version>
-#        * <old-preinst> `abort-upgrade' <new-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-# starting with 0.118 .cfg file format is changed heavily
-# and the /etc/sdlmame tree has been restructured
-# they *must* be deleted on upgrading or they *will* get sdlmame stunned
-
-# starting with 0.128u7 joystick remapping is switch-driven
-
-case "$1" in
-    install)
-    ;;
-
-    upgrade)
-        if dpkg --compare-versions "$2" lt "0.118"; then
-            rm -rf /etc/sdlmame/ini
-        fi
-        if dpkg --compare-versions "$2" lt "0.128u7"; then
-            rm -f /etc/sdlmame/joymap.dat
-        fi
-        if dpkg --compare-versions "$2" lt "0.130u1"; then
-            rm -rf /var/games/sdlmame
-        fi
-        if dpkg --compare-versions "$2" lt "0.133"; then
-            if [ -d /usr/local/share/games/sdlmame/crsshair ] &&
-                [ ! -e /usr/local/share/games/sdlmame/crosshair ]; then
-                    mv /usr/local/share/games/sdlmame/crsshair \
-                        /usr/local/share/games/sdlmame/crosshair
-            fi
-        fi
-        if dpkg --compare-versions "$2" lt "0.136u1"; then
-            if [ -d /etc/sdlmame ] && [ ! -e /etc/mame ]; then
-                mv /etc/sdlmame /etc/mame
-            fi
-            if [ -d /usr/local/share/games/sdlmame ] &&
-                [ ! -e /usr/local/share/games/mame ]; then
-                    mv /usr/local/share/games/sdlmame \
-                        /usr/local/share/games/mame
-            fi
-        fi
-    ;;
-
-    abort-upgrade)
-    ;;
-
-    *)
-        echo "preinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-

-- 
packaging for the mame arcade game emulator



More information about the Pkg-games-commits mailing list