From f99c9356da75637b8b7a366f251b1d8535dfbb9b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 4 Jul 2000 19:53:13 +0000 Subject: 2000-07-04 Marcus Brinkmann * changelog: Update to reflect Debian uploads. * rules: Use install_script to install scripts. Don't check for shared libraries in scripts. 2000-01-30 Marcus Brinkmann * changelog: Update to reflect Debian uploads. --- debian/rules | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 521e0b1d..7bb66fee 100755 --- a/debian/rules +++ b/debian/rules @@ -39,6 +39,7 @@ STAMPS_TO_CLEAN = stamp-build stamp-config install_file = install -o root -g root -m 644 install_program = install -s -o root -g root -m 755 +install_script = install -o root -g root -m 755 make_directory = install -d -o root -g root -m 755 define checkdir @@ -172,10 +173,14 @@ binary-arch: build $(install_file) debian/conffiles debian/tmp/DEBIAN/conffiles $(install_file) debian/shlibs debian/tmp/DEBIAN/shlibs - $(install_program) debian/postinst debian/tmp/DEBIAN/postinst - $(install_program) debian/prerm debian/tmp/DEBIAN/prerm - - dpkg-shlibdeps -p$(package) debian/tmp/bin/* debian/tmp/libexec/* debian/tmp/hurd/* debian/tmp/sbin/* + $(install_script) debian/postinst debian/tmp/DEBIAN/postinst + $(install_script) debian/prerm debian/tmp/DEBIAN/prerm + + # Filter out scripts. + dpkg-shlibdeps -p$(package) `for f in debian/tmp/bin/* \ + debian/tmp/libexec/* debian/tmp/hurd/* \ + debian/tmp/sbin/* ; do head -n1 $$f \ + | sed -n -e '/^#!/!a\'$$'\n'$$f ; done` dpkg-gencontrol -p$(package) -Pdebian/tmp chown -R root.root debian/tmp dpkg --build debian/tmp .. -- cgit v1.2.3