Some "use chroot" improvements.
[rsync.git] / mkproto.awk
index ab97d54f86f2b452d6a4b0fa84bdaf828bf3a7b1..bd2e927b947b86c24e4d447dad5e480fa4cedc97 100644 (file)
@@ -2,6 +2,7 @@
 
 BEGIN {
     while ((getline i < "proto.h") > 0) old_protos = old_protos ? old_protos "\n" i : i
+    close("proto.h")
     protos = "/* This file is automatically generated with \"make proto\". DO NOT EDIT */\n"
 }
 
@@ -35,5 +36,5 @@ inheader {
 
 END {
     if (old_protos != protos) print protos > "proto.h"
-    printf "" > "proto.h-tstamp"
+    system("touch proto.h-tstamp")
 }