Remove old file processed from *.ad file before processing again
authorPekka Riikonen <priikone@silcnet.org>
Sat, 26 Jan 2008 18:25:40 +0000 (20:25 +0200)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 26 Jan 2008 18:25:40 +0000 (20:25 +0200)
Signed-off-by: Pekka Riikonen <priikone@silcnet.org>
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