chiark / gitweb /
correct menu support. update-menus.1 fibs l-)
authorRichard Kettlewell <rjk@greenend.org.uk>
Wed, 31 Oct 2007 18:57:15 +0000 (18:57 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Wed, 31 Oct 2007 18:57:15 +0000 (18:57 +0000)
debian/Makefile.am
debian/autorules.m4
debian/postinst.disobedience [new file with mode: 0644]

index 725d10f..162d244 100644 (file)
@@ -33,4 +33,5 @@ EXTRA_DIST=README.Debian autorules.m4 config.disorder control copyright \
           etc.disorder.options etc.disorder.config htaccess \
           postinst.disorder prerm.disorder postrm.disorder \
           templates.disorder conffiles.disorder \
-          rules.m4 rules changelog usr.share.menu.disobedience
+          rules.m4 rules changelog usr.share.menu.disobedience \
+          postinst.disobedience
index 262335c..63c8e28 100644 (file)
@@ -71,15 +71,15 @@ pkg-$1: [build]
        $(MKDIR) debian/$1
        $(MKDIR) debian/$1/DEBIAN
        $(MKDIR) debian/$1/usr/share/doc/$1
-       cp debian/copyright \
+       $(INSTALL_DATA) debian/copyright \
                debian/$1/usr/share/doc/$1/copyright
-       cp debian/changelog \
+       $(INSTALL_DATA) debian/changelog \
                debian/$1/usr/share/doc/$1/changelog.Debian
        gzip -9 debian/$1/usr/share/doc/$1/changelog.Debian
        @for f in preinst postinst prerm postrm conffiles templates config; do\
          if test -e debian/$$f.$1; then\
-           echo cp debian/$$f.$1 debian/$1/DEBIAN/$$f; \
-           cp debian/$$f.$1 debian/$1/DEBIAN/$$f; \
+           echo $(INSTALL_SCRIPT) debian/$$f.$1 debian/$1/DEBIAN/$$f; \
+           $(INSTALL_SCRIPT) debian/$$f.$1 debian/$1/DEBIAN/$$f; \
          fi;\
        done
 $2     dpkg-gencontrol -isp -p$1 -Pdebian/$1 -Tdebian/substvars.$1
diff --git a/debian/postinst.disobedience b/debian/postinst.disobedience
new file mode 100644 (file)
index 0000000..db2a492
--- /dev/null
@@ -0,0 +1,30 @@
+#! /bin/sh
+#
+# This file is part of DisOrder
+# Copyright (C) 2007 Richard Kettlewell
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+#
+
+set -e
+
+case "$1" in
+configure )
+  if type update-menus >/dev/null 2>&1; then
+    update-menus
+  fi
+  ;;
+esac