From: Pekka Riikonen Date: Sat, 26 Jan 2008 18:25:40 +0000 (+0200) Subject: Remove old file processed from *.ad file before processing again X-Git-Tag: autodist.1.4~1 X-Git-Url: http://git.silcnet.org/gitweb/?p=autodist.git;a=commitdiff_plain;h=1161f5ff17990875d3b15ca34ac6f71bb4068788 Remove old file processed from *.ad file before processing again Signed-off-by: Pekka Riikonen --- diff --git a/apps/autodist/autodist.in b/apps/autodist/autodist.in index 8d5c977..9f2c8c6 100755 --- a/apps/autodist/autodist.in +++ b/apps/autodist/autodist.in @@ -570,8 +570,10 @@ ad_process_ads() ad_debug "Processing $i to be $fname" ad_log " $i into $fname" + rm -f $fname + # Run the distribution processing for this file - ad_process_file $i $fname false + ad_process_file $orig $fname false if test '!' -f "$fname"; then cp -p $orig $fname || exit 1