summaryrefslogtreecommitdiff
path: root/dh_clean
blob: da2c4b2279f5607c8df9e6d1b01e1f398b39a9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 {} \;