Commit 64c35a0e authored by Leigh B Stoller's avatar Leigh B Stoller

Append NS file to the end of the geni-lib script.

parent 5977a3f8
......@@ -297,6 +297,24 @@ if ($?) {
exit($tmp >> 8);
# Append original NS file.
open(PY, ">>$pyfile") or
fatal("Could not open $pyfile for appending: $!");
open(NS, "$nsfile") or
fatal("Could not open $nsfile: $!");
print PY "\n";
print PY "#\n";
print PY "# Here is the original NS file.\n";
print PY "#\n";
while (<NS>) {
print PY "# $_";
print PY "\n";
if (defined($ofile)) {
system("cat $pyfile > $ofile");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment