| 1 | # /=====================================================================\ # | ||
| 2 | # | Version | # | ||
| 3 | # | Record LaTeXML Version, Revision... | # | ||
| 4 | # |=====================================================================| # | ||
| 5 | # | Part of LaTeXML: | # | ||
| 6 | # | Public domain software, produced as part of work done by the | # | ||
| 7 | # | United States Government & not subject to copyright in the US. | # | ||
| 8 | # |---------------------------------------------------------------------| # | ||
| 9 | # | Bruce Miller <bruce.miller@nist.gov> #_# | # | ||
| 10 | # | http://dlmf.nist.gov/LaTeXML/ (o o) | # | ||
| 11 | # \=========================================================ooo==U==ooo=/ # | ||
| 12 | |||
| 13 | package LaTeXML::Version; | ||
| 14 | use strict; | ||
| 15 | use warnings; | ||
| 16 | use FindBin; | ||
| 17 | |||
| 18 | #====================================================================== | ||
| 19 | # The original idea here was to | ||
| 20 | # * collect VERSION (& related info) in ONE place | ||
| 21 | # * to provide a small file, editable by make, which could record git status | ||
| 22 | # However, Perl/MakeMaker/CPAN maintain a perverse distinction between | ||
| 23 | # module & distribution versions that makes this hard. | ||
| 24 | #====================================================================== | ||
| 25 | # We _could_ put in Makefile.PL | ||
| 26 | # VERSION_FROM => 'lib/LaTeXML/Version.in', | ||
| 27 | # In here: | ||
| 28 | # use version; our $VERSION = version->declare("0.8.0"); | ||
| 29 | # $LaTeXML::VERSION = $VERSION; # "export" it... | ||
| 30 | # and in LaTeXML: | ||
| 31 | # use LaTeXML::Version; | ||
| 32 | # $LaTeXML::VERSION = do { use LaTeXML::Version; $LaTeXML::Version::VERSION; }; | ||
| 33 | # That ALMOST works, but the CPAN indexer ONLY looks for explicit versions | ||
| 34 | # in the "top level module" | ||
| 35 | #====================================================================== | ||
| 36 | # SO, we keep the actual version in LaTeXML.pm | ||
| 37 | # BUT, we can't "use LaTeXML" here, else we get a dependency loop, | ||
| 38 | # so anyone that uses LaTeXML::Version must use LaTeXML as well. | ||
| 39 | #====================================================================== | ||
| 40 | |||
| 41 | # This is the git/svn/whatever revision; it should be filled in by make. | ||
| 42 | our $REVISION = ''; | ||
| 43 | |||
| 44 | 1; | ||
| 45 |