[Python-apps-commits] r4951 - in packages/autokey/trunk/debian (5 files)

ffm-guest at users.alioth.debian.org ffm-guest at users.alioth.debian.org
Fri Mar 12 20:54:00 UTC 2010


    Date: Friday, March 12, 2010 @ 20:53:59
  Author: ffm-guest
Revision: 4951

Use update-alternatives to provide an autokey binary.

Added:
  packages/autokey/trunk/debian/autokey-gtk.postinst
  packages/autokey/trunk/debian/autokey-gtk.prerm
  packages/autokey/trunk/debian/autokey-qt.postinst
  packages/autokey/trunk/debian/autokey-qt.prerm
Modified:
  packages/autokey/trunk/debian/changelog

Added: packages/autokey/trunk/debian/autokey-gtk.postinst
===================================================================
--- packages/autokey/trunk/debian/autokey-gtk.postinst	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-gtk.postinst	2010-03-12 20:53:59 UTC (rev 4951)
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+update-alternatives --install /usr/bin/autokey autokey \
+  /usr/bin/autokey-gtk 50 \
+  --slave /usr/share/man/man1/autokey.1.gz autokey.1.gz  \
+  /usr/share/man/man1/autokey-gtk.1.gz
+
+#DEBHELPER#
+

Added: packages/autokey/trunk/debian/autokey-gtk.prerm
===================================================================
--- packages/autokey/trunk/debian/autokey-gtk.prerm	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-gtk.prerm	2010-03-12 20:53:59 UTC (rev 4951)
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+case "$1" in
+    remove|deconfigure)
+        update-alternatives --remove autokey /usr/bin/autokey-gtk
+    ;;
+    upgrade)
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+exit 0
+

Added: packages/autokey/trunk/debian/autokey-qt.postinst
===================================================================
--- packages/autokey/trunk/debian/autokey-qt.postinst	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-qt.postinst	2010-03-12 20:53:59 UTC (rev 4951)
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+update-alternatives --install /usr/bin/autokey autokey \
+  /usr/bin/autokey-qt 60 \
+  --slave /usr/share/man/man1/autokey.1.gz autokey.1.gz  \
+  /usr/share/man/man1/autokey-qt.1.gz
+
+#DEBHELPER#
+

Added: packages/autokey/trunk/debian/autokey-qt.prerm
===================================================================
--- packages/autokey/trunk/debian/autokey-qt.prerm	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-qt.prerm	2010-03-12 20:53:59 UTC (rev 4951)
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+case "$1" in
+    remove|deconfigure)
+        update-alternatives --remove autokey /usr/bin/autokey-qt
+    ;;
+    upgrade)
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+exit 0
+

Modified: packages/autokey/trunk/debian/changelog
===================================================================
--- packages/autokey/trunk/debian/changelog	2010-03-12 18:02:30 UTC (rev 4950)
+++ packages/autokey/trunk/debian/changelog	2010-03-12 20:53:59 UTC (rev 4951)
@@ -2,7 +2,7 @@
 
   * New upstream version:
      - Combine GTK and QT versions into single source tree 
-  * Provide "autokey" as a transitional package to autokey-common and autokey-qt
+  * Provide "autokey" as a transitional package to autokey-common and autokey-q
 
  -- Luke Faraone <luke at faraone.cc>  Fri, 12 Mar 2010 08:50:33 -0500
 




More information about the Python-apps-commits mailing list