[interchange] Add feature to tag/use the current development version for `make tardist`
David Christensen <[email protected]> Thu, 02 Nov 2017 20:05:32 +0000
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit df69a4ad673e79e0476c59a8a2390d7766c18f1a Author: David Christensen <[email protected]> Date: Thu Nov 2 15:05:29 2017 -0500 Add feature to tag/use the current development version for `make tardist` .gitignore | 1 + MANIFEST | 1 + Makefile.PL | 3 ++- 3 files changed, 4 insertions(+), 1 deletions(-) --- diff --git a/.gitignore b/.gitignore index 6ac77aa..63da7fd 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,4 @@ scripts/update Vagrantfile *.swp *~ +.ic-version diff --git a/MANIFEST b/MANIFEST index 083abfa..8f5f551 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1291,3 +1291,4 @@ t/interchange-test/variable.txt test.pl UPGRADE WHATSNEW +.ic-version diff --git a/Makefile.PL b/Makefile.PL index 54973cd..0e6272e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -29,7 +29,7 @@ my @mods_to_get; my @remove_old; my $Lock_troubles; -$VERSION = '5.12.0'; +$VERSION = eval { require './.ic-version' } || '5.12.0'; my @os_hints; eval { @@ -711,6 +711,7 @@ EOF if (-d "./.git") { $X{VERSION} = qx(git describe --tags --dirty); chomp $X{VERSION}; + system(qq{echo '"$X{VERSION}"' > .ic-version}); } else { $X{VERSION} = $VERSION;