summaryrefslogtreecommitdiff
path: root/dh_clean
diff options
context:
space:
mode:
Diffstat (limited to 'dh_clean')
-rwxr-xr-xdh_clean16
1 files changed, 16 insertions, 0 deletions
diff --git a/dh_clean b/dh_clean
new file mode 100755
index 00000000..da2c4b22
--- /dev/null
+++ b/dh_clean
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+#
+# Clean up debian/tmp and other teporary files generated by the
+# build process.
+
+PATH=debian:$PATH:/usr/lib/debhelper
+source dh_lib
+
+doit "rm -rf debian/tmp"
+doit "rm -f debian/substvars debian/*.substvars debian/files*"
+
+# Remove other temp files. I don't run this through doit becuase
+# I haven't figured out what I have to esacape to put it in quotes.
+# However, it doesn't modify debian/tmp, so I guess it's ok to not run it
+# through doit.
+find . \( -name "\#*\#" -o -name "*~" -o -name "DEADJOE" \) -exec rm -f {} \;