summaryrefslogtreecommitdiff
path: root/dh_clean
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:39:21 +0000
committerjoey <joey>1999-08-17 04:39:21 +0000
commit918dbc752efd1d35a3ef667524062d4a0dcd3e3e (patch)
tree2ac6c6df0ba0b3f791386f53bb8a6602a03c15c3 /dh_clean
parent99b34ff691012e69828ea2167b7a3089ac4953f3 (diff)
downloaddebhelper-918dbc752efd1d35a3ef667524062d4a0dcd3e3e.tar.gz
r38: Initial Import
Diffstat (limited to 'dh_clean')
-rwxr-xr-xdh_clean12
1 files changed, 8 insertions, 4 deletions
diff --git a/dh_clean b/dh_clean
index b170494b..6306adda 100755
--- a/dh_clean
+++ b/dh_clean
@@ -12,11 +12,15 @@ for PACKAGE in $DH_DOPACKAGES; do
doit "rm -rf $TMP"
doit "rm -f debian/${EXT}substvars"
done
-doit "rm -f debian/files* debian/*.debhelper $*"
+doit "rm -f debian/*.debhelper $*"
+if [ ! "$DH_K_FLAG" ]; then
+ doit "rm -f debian/files*"
+fi
# Remove other temp files.
# Use complex_doit so we can properly escape things.
-complex_doit "find . \( -name '#*#' -o -name '*~' -o -name DEADJOE -o -name '*.orig' \
- -o -name '*.rej' -o -name '*.bak' -o -name '.*.orig' \
- -o -name '.*.rej' -o -name .SUMS -o -name TAGS -o -name core \
+complex_doit "find . \( -name '#*#' -o -name '*~' -o -name DEADJOE \
+ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
+ -o -name '.*.orig' -o -name '.*.rej' -o -name .SUMS \
+ -o -name TAGS -o -name core \
\) -exec rm -f {} \;"