From a640488a8c6353cf3d9b729b92d78f698043db53 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 26 Jul 2021 16:56:00 -0300 Subject: add new versioning scheme --- countrows.h | 3 ++- doc2h.pl | 8 +++++++- float2rat.h | 3 ++- rat2canon.h | 3 ++- rat2float.h | 3 ++- rat2int.h | 3 ++- 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\ " -- cgit v1.2.3