]> git.donarmstrong.com Git - debhelper.git/blob - dh_clean
r1: Initial revision
[debhelper.git] / dh_clean
1 #!/bin/sh -e
2 #
3 # Clean up debian/tmp and other teporary files generated by the 
4 # build process.
5
6 PATH=debian:$PATH:/usr/lib/debhelper
7 source dh_lib
8
9 doit "rm -rf debian/tmp"
10 doit "rm -f debian/substvars debian/*.substvars debian/files*"
11
12 # Remove other temp files. I don't run this through doit becuase
13 # I haven't figured out what I have to esacape to put it in quotes.
14 # However, it doesn't modify debian/tmp, so I guess it's ok to not run it 
15 # through doit.
16 find . \( -name "\#*\#" -o -name "*~" -o -name "DEADJOE" \) -exec rm -f {} \;