X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fissue.pl;h=fd09e8594e3b2a983cbc9c368151e9d4a288f8f6;hb=ca828d0e2a21d9a6540361ca4878df71f125e120;hp=065c9abdc1971546d8e198d009c9b7e84ba5e13f;hpb=537a4a109f291c206d754ec2067d49f9964cca08;p=spider.git diff --git a/perl/issue.pl b/perl/issue.pl index 065c9abd..fd09e859 100755 --- a/perl/issue.pl +++ b/perl/issue.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # create a version and build id for the project using git ids # @@ -20,7 +20,6 @@ use vars qw($root); my $fn = "$root/perl/Version.pm"; my $desc = `git describe --long`; my ($v, $s, $b, $g) = $desc =~ /^([\d.]+)(?:\.(\d+))?-(\d+)-g([0-9a-f]+)/; -$s ||= '0'; # account for missing subversion $b++; # to account for the commit that is about to happen open F, ">$fn" or die "issue.pl: can't open $fn $!\n"; @@ -33,12 +32,13 @@ print F qq(# package main; -use vars qw(\$version \$subversion \$build \$gitversion); +use vars qw(\$version \$build \$gitversion); \$version = '$v'; -\$subversion = '$s'; \$build = '$b'; -\$gitversion = '$g'; +\$gitversion = '$g\[i]'; 1; ); + +exit(0);