From aa76b6aa6d7fce664630179b7e15a8479a0e0911 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 27 Dec 2005 20:46:20 +0000 Subject: Release-1.4.5-20051227 --- wintools/version.pl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 wintools/version.pl diff --git a/wintools/version.pl b/wintools/version.pl new file mode 100644 index 0000000..e20e64e --- /dev/null +++ b/wintools/version.pl @@ -0,0 +1,25 @@ +# Extract the version information from the configure script and write +# it in the version of the VERSION file to stdout. +# Should be called from the root of the distribution. + +open(FILE,") { + if (/doxygen_version_major=(\d+)/) { + $major=$1 + } elsif (/doxygen_version_minor=(\d+)/) { + $minor=$1 + } elsif (/doxygen_version_revision=(\d+)/) { + $revision=$1 + } elsif (/doxygen_version_mmn=(\w+)/) { + $mmn=$1 + } +} + +if ($mmn) { + print "$major.$minor.$revision-$mmn\n"; +} else { + print "$major.$minor.$revision\n"; +} + +close(FILE); -- cgit v0.12