diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-09-12 17:36:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-09-12 17:36:00 +0000 |
commit | 2e70a9430682519600b4f1ac7c3528112abc0959 (patch) | |
tree | 7a74b5af78acdeef9081f6e21a52087d5a0a3e79 | |
parent | 0312f3371249d9fdd3a2db66707b91f50ef19ee1 (diff) | |
download | iurt-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-- | Makefile | 2 | ||||
-rwxr-xr-x | iurt | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -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) @@ -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"); |