aboutsummaryrefslogtreecommitdiff
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
parent26dc1cbcd95734775da2111122d75415c26e1470 (diff)
add new versioning scheme
-rw-r--r--countrows.h3
-rw-r--r--doc2h.pl8
-rw-r--r--float2rat.h3
-rw-r--r--rat2canon.h3
-rw-r--r--rat2float.h3
-rw-r--r--rat2int.h3
6 files changed, 17 insertions, 6 deletions
diff --git a/countrows.h b/countrows.h
index 017b029..6ece766 100644
--- a/countrows.h
+++ b/countrows.h
@@ -1,4 +1,5 @@
-#define DOCSTRING "\n\
+#define DOCSTRING "inetools 0.10\
+\n\
Reads a polyhedron file on stdin, counts the rows, and outputs an\n\
equivalent file with a corrected row count.\n\
"
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;
diff --git a/float2rat.h b/float2rat.h
index 4266c60..cf60794 100644
--- a/float2rat.h
+++ b/float2rat.h
@@ -1,4 +1,5 @@
-#define DOCSTRING "\n\
+#define DOCSTRING "inetools 0.10\
+\n\
Converts floating point coefficent $f$ to rational by the\n\
simple expedient of outputing 10^k*f/10^k for appropriate\n\
$k$. Does no reduction of numbers. In particular this may cause overflow in\n\
diff --git a/rat2canon.h b/rat2canon.h
index 27d27c4..32320fd 100644
--- a/rat2canon.h
+++ b/rat2canon.h
@@ -1,4 +1,5 @@
-#define DOCSTRING "\n\
+#define DOCSTRING "inetools 0.10\
+\n\
rat2canon takes a polytope file with rational or integer coefficents, \n\
and outputs an equivelent one with normalized right hand side.\n\
"
diff --git a/rat2float.h b/rat2float.h
index 7fd3c34..5b120e5 100644
--- a/rat2float.h
+++ b/rat2float.h
@@ -1,4 +1,5 @@
-#define DOCSTRING "\n\
+#define DOCSTRING "inetools 0.10\
+\n\
rat2float takes a polytope file with rational or integer coefficents,\n\
and outputs an approximately equivelent one with floating point\n\
coefficents.\n\
diff --git a/rat2int.h b/rat2int.h
index b136126..e6abc25 100644
--- a/rat2int.h
+++ b/rat2int.h
@@ -1,4 +1,5 @@
-#define DOCSTRING "\n\
+#define DOCSTRING "inetools 0.10\
+\n\
rat2canon takes a polytope file with rational or integer coefficents,\n\
and outputs an equivelent one with normalized right hand side.\n\
"