aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");