Added SILC Thread Queue API
[silc.git] / apps / autodist / autodist.in
index 16a789ac514ac78ad956958a9860192d7134c420..e3b67b7ab99f1de45ce67145c682c9549283b7de 100755 (executable)
@@ -565,16 +565,17 @@ ad_process_ads()
   for i in $files
   do
     fname=`echo $i | sed s/\.ad//`
+    orig=$i
 
     ad_debug "Processing $i to be $fname"
     ad_log "  $i into $fname"
 
     # Run the distribution processing for this file
     ad_process_file $i $fname false
-    if test -f $fname; then
-      cp -p $i $fname || exit 1
-    fi
 
+    if test '!' -f "$fname"; then
+      cp -p $orig $fname || exit 1
+    fi
   done
   ad_log ""