diff options
-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"); |