aboutsummaryrefslogtreecommitdiffstats
path: root/clean_files
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-05-20 13:14:39 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-05-20 13:14:39 +0000
commit005415fa3c343e6aef056e830e195d87ce8b73e1 (patch)
tree86afe253a616b01b6276efd5da7c4f5e57e8875f /clean_files
parent657c75055954c53ac17ca66167832a0b4ecf5f8c (diff)
downloadspec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.gz
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.bz2
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.xz
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.zip
- split main script, make all script independants
Diffstat (limited to 'clean_files')
-rwxr-xr-xclean_files3
1 files changed, 3 insertions, 0 deletions
diff --git a/clean_files b/clean_files
index f0ae5e8..9955454 100755
--- a/clean_files
+++ b/clean_files
@@ -10,7 +10,10 @@
#---------------------------------------------------------------
################################################################################
+$ENV{DONT_CLEANUP} and exit(0);
+
my $RPM_BUILD_ROOT = $ENV{RPM_BUILD_ROOT};
+$RPM_BUILD_ROOT or exit(0); # case RPM_BUILD_ROOT is not used
chdir($RPM_BUILD_ROOT) or die "Can't cd to $ENV{RPM_BUILD_ROOT}: $!";
system(split(/\s+/, "find . -type f -a