aboutsummaryrefslogtreecommitdiff
path: root/doc2h.pl
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-07-26 16:56:00 -0300
committerDavid Bremner <david@tethera.net>2021-07-26 16:56:00 -0300
commita640488a8c6353cf3d9b729b92d78f698043db53 (patch)
tree336fe69a017084e37a6b43875c7172f50e86858c /doc2h.pl
parent26dc1cbcd95734775da2111122d75415c26e1470 (diff)
add new versioning scheme
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;