diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-08-28 16:07:25 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-08-28 16:07:25 +0000 |
commit | c8d91b7e03a29e737660c4142d73c3dc51b32170 (patch) | |
tree | 23be6a76976eeda152713c235b68a7a3e83eaed2 /lib/server | |
parent | f9b06856613d4c9a2180c26ba72951dbad2bd0e5 (diff) |
Output the names of protocol files being written.
Diffstat (limited to 'lib/server')
-rwxr-xr-x | lib/server/makeprotocol.pl.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/server/makeprotocol.pl.in b/lib/server/makeprotocol.pl.in index 92e2635a..db33bd29 100755 --- a/lib/server/makeprotocol.pl.in +++ b/lib/server/makeprotocol.pl.in @@ -141,9 +141,11 @@ close IN; # open files -my $h_filename = 'autogen_'.$protocol_name.'Protocol.h'; -open CPP,'>autogen_'.$protocol_name.'Protocol.cpp'; -open H,">$h_filename"; +my $filename_base = 'autogen_'.$protocol_name.'Protocol'; +print "Writing $filename_base.cpp\n"; +print "Writing $filename_base.h\n"; +open CPP, "> $filename_base.cpp"; +open H, "> $filename_base.h"; my $guardname = uc 'AUTOGEN_'.$protocol_name.'Protocol_H'; @@ -155,7 +157,7 @@ print CPP <<__E; #include <sstream> -#include "$h_filename" +#include "$filename_base.h" #include "IOStream.h" __E |