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
$(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
--- /dev/null
+#! /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