]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_du
r146: Initial Import
[debhelper.git] / dh_du
diff --git a/dh_du b/dh_du
index 5fcb141804ea718deef9939af4f4a4bb43ad5ebf..f81b074d464c62db6de311426f97ae43fe1e3791 100755 (executable)
--- a/dh_du
+++ b/dh_du
@@ -1,19 +1,11 @@
-#!/bin/sh -e
+#!/usr/bin/perl -w
 #
 # Generate a DEBIAN/du file, that lists the disk usage of the directories in 
 # the package.
+#
+# No longer - it was decided these files are a bad idea.
 
-PATH=debian:$PATH:/usr/lib/debhelper
-. dh_lib
-
-for PACKAGE in $DH_DOPACKAGES; do
-       TMP=`tmpdir $PACKAGE`
-
-       if [ ! -d "$TMP/DEBIAN" ]; then
-               doit "install -d $TMP/DEBIAN"
-       fi
+BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
+use Dh_Lib;
 
-       verbose_echo "du -k $TMP | sed \"s:     $TMP/:  :\" | grep -v \"        DEBIAN$\" | grep -v \"  $TMP$\" > $TMP/DEBIAN/du"
-       du -k $TMP | sed "s:    $TMP/:  :" | grep -v "  DEBIAN$" | grep -v "    $TMP$" >$TMP/DEBIAN/du
-       doit "chown root.root debian/tmp/DEBIAN/du"
-done
+warning("this program does nothing and is deprecated. Remove it from debian/rules.");