aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-12 17:36:00 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-12 17:36:00 +0000
commit2e70a9430682519600b4f1ac7c3528112abc0959 (patch)
tree7a74b5af78acdeef9081f6e21a52087d5a0a3e79
parent0312f3371249d9fdd3a2db66707b91f50ef19ee1 (diff)
downloadiurt-2e70a9430682519600b4f1ac7c3528112abc0959.tar
iurt-2e70a9430682519600b4f1ac7c3528112abc0959.tar.gz
iurt-2e70a9430682519600b4f1ac7c3528112abc0959.tar.bz2
iurt-2e70a9430682519600b4f1ac7c3528112abc0959.tar.xz
iurt-2e70a9430682519600b4f1ac7c3528112abc0959.zip
- do not display meaningless commiter, revision & checkout date, just
version - extract version number from sources
-rw-r--r--Makefile2
-rwxr-xr-xiurt6
2 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 189acbd..53bfe30 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
NAME=iurt
PACKAGE=$(NAME)
-VERSION=0.6.11
+VERSION=$(shell egrep 'my \$$version = .*' iurt|sed -e "s/';//" -e "s/.*'//")
VENDORLIB = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)
INSTALLVENDORLIB = $(DESTDIR)$(VENDORLIB)
diff --git a/iurt b/iurt
index a9da60f..306f4cb 100755
--- a/iurt
+++ b/iurt
@@ -365,10 +365,8 @@ plog_init($program_name, $run{logfd} || $LOG, 7, 1); # For parsing command line
# Display version information
#
-(my $iurt_rev = '$Rev$') =~ s/.*: (\d+).*/$1/;
-(my $iurt_aut = '$Author$') =~ s/.*: (..).*/$1/;
-(my $iurt_dat = '$Date$') =~ s/.*: ([\d-]* [\d:]*) .*/$1/;
-plog("MSG", "This is iurt revision $iurt_rev-$iurt_aut ($iurt_dat)");
+my $version = '0.6.11';
+plog("MSG", "This is iurt version $version");
my $todo = parseCommandLine($program_name, \@ARGV, \@params);
@ARGV and usage($program_name, \@params, "@ARGV, too many arguments");