diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-12-27 20:46:20 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-12-27 20:46:20 (GMT) |
commit | 58937e01f1b9aa5bcec7ae8eed46ae8ace7c157d (patch) | |
tree | 1ee14054b8776e2cb36664b0f2a8ae6891e8726e /wintools | |
parent | d4da97f32ddc6c44df781b3b7b762be0101b9bac (diff) | |
download | Doxygen-58937e01f1b9aa5bcec7ae8eed46ae8ace7c157d.zip Doxygen-58937e01f1b9aa5bcec7ae8eed46ae8ace7c157d.tar.gz Doxygen-58937e01f1b9aa5bcec7ae8eed46ae8ace7c157d.tar.bz2 |
Release-1.4.5-20051227
Diffstat (limited to 'wintools')
-rw-r--r-- | wintools/version.pl | 25 |
1 files changed, 25 insertions, 0 deletions
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,"<configure") || die "Could not open configure file!"; + +while (<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); |