aboutsummaryrefslogtreecommitdiffstats
path: root/clean_files
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-08-29 05:38:07 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-08-29 05:38:07 +0000
commitddf95a281d321db31bce34c9f319c69ba6075190 (patch)
treeeca73931fbc686a72de941c7348cfc3ec17d93e1 /clean_files
parent11386c1c1c5eab7b76a0855bf9e8969fcb253dbb (diff)
downloadspec-helper-ddf95a281d321db31bce34c9f319c69ba6075190.tar
spec-helper-ddf95a281d321db31bce34c9f319c69ba6075190.tar.gz
spec-helper-ddf95a281d321db31bce34c9f319c69ba6075190.tar.bz2
spec-helper-ddf95a281d321db31bce34c9f319c69ba6075190.tar.xz
spec-helper-ddf95a281d321db31bce34c9f319c69ba6075190.zip
remove .cvsignore
fixed removing of CVS dirs (thx to Stephane Chatty)
Diffstat (limited to 'clean_files')
-rwxr-xr-xclean_files4
1 files changed, 2 insertions, 2 deletions
diff --git a/clean_files b/clean_files
index 24465c2..e39a58a 100755
--- a/clean_files
+++ b/clean_files
@@ -14,12 +14,12 @@ $RPM_BUILD_ROOT=$ENV{RPM_BUILD_ROOT};
chdir($RPM_BUILD_ROOT) || die "Can't cd to $ENV{RPM_BUILD_ROOT}: $!";
system(split(/\s+/,"find . -type f -a
- ( -name #*# -o -name *~ -o -name DEADJOE
+ ( -name #*# -o -name *~ -o -name DEADJOE -o -name .cvsignore
-o -name *.orig -o -name *.rej -o -name *.bak
-o -name .*.orig -o -name .*.rej -o -name .SUMS
-o -name TAGS -o -name core -o ( -path */.deps/* -a -name *.P )
) -exec rm -f {} ;"));
-system(split(/\s+/, "find . -type d -a -name CVS -exec rm -rf {} ;"));
+system("find . -type d -a -name CVS | xargs rm -rf");
# clean_files ends here