Skip to content

Commit

Permalink
Add feature to tag/use the current development version for `make tard…
Browse files Browse the repository at this point in the history
…ist`
  • Loading branch information
David Christensen committed Nov 2, 2017
1 parent 5c6f22c commit df69a4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -66,3 +66,4 @@ scripts/update
Vagrantfile
*.swp
*~
.ic-version
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -1291,3 +1291,4 @@ t/interchange-test/variable.txt
test.pl
UPGRADE
WHATSNEW
.ic-version
3 changes: 2 additions & 1 deletion Makefile.PL
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit df69a4a

Please sign in to comment.