From 005415fa3c343e6aef056e830e195d87ce8b73e1 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sat, 20 May 2006 13:14:39 +0000 Subject: - split main script, make all script independants --- clean_files | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clean_files') 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 -- cgit v1.2.1