aboutsummaryrefslogtreecommitdiff
path: root/doc2h.pl
diff options
context:
space:
mode:
Diffstat (limited to 'doc2h.pl')
-rw-r--r--doc2h.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc2h.pl b/doc2h.pl
index fe27e69..cba204b 100644
--- a/doc2h.pl
+++ b/doc2h.pl
@@ -1,6 +1,12 @@
#/usr/bin/env perl
-print '#define DOCSTRING "';
+use File::Slurp;
+
+my $version = read_file('version.txt');
+
+chomp($version);
+
+printf "#define DOCSTRING \"inetools %s\\\n", $version;
while(<>){
s|\"|\\"|g;
s|\n|\\n\\\n|g;