Remove old file processed from *.ad file before processing again
[autodist.git] / apps / autodist / autodist.in
index 8d5c97737d8f7f2310435496413970b4ac01fc56..9f2c8c6a7a9d31f10a13f351b2fd8cd4ef119c5b 100755 (executable)
@@ -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