diff mbox series

[6/7] decode-dimms: Fix the version string

Message ID 20190903112415.315c4097@endymion
State Awaiting Upstream
Headers show
Series i2c-tools: Various fixes and improvements to decode-dimms | expand

Commit Message

Jean Delvare Sept. 3, 2019, 9:24 a.m. UTC
We moved away from Subversion long ago, so $Revision$ and $Date$ are
no longer being resolved. Just use the version of i2c-tools itself.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
 eeprom/decode-dimms |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
diff mbox series

Patch

--- i2c-tools.orig/eeprom/decode-dimms	2019-09-03 10:38:26.287220460 +0200
+++ i2c-tools/eeprom/decode-dimms	2019-09-03 10:41:14.805360317 +0200
@@ -43,14 +43,11 @@  use Fcntl qw(:DEFAULT :seek);
 use File::Basename;
 use vars qw($opt_html $opt_bodyonly $opt_side_by_side $opt_merge
 	    $opt_igncheck $use_sysfs $use_hexdump $sbs_col_width
-	    @vendors %decode_callback $revision @dimm $current %hexdump_cache);
+	    @vendors %decode_callback @dimm $current %hexdump_cache);
 
 use constant LITTLEENDIAN	=> "little-endian";
 use constant BIGENDIAN		=> "big-endian";
-
-$revision = '$Revision$ ($Date$)';
-$revision =~ s/\$\w+: (.*?) \$/$1/g;
-$revision =~ s/ \([^()]*\)//;
+use constant I2C_TOOLS_VER	=> "4.1";
 
 @vendors = (
 ["AMD", "AMI", "Fairchild", "Fujitsu",
@@ -2637,7 +2634,7 @@  if ($opt_html && !$opt_bodyonly) {
 	      "<body>\n";
 }
 
-printc("decode-dimms version $revision");
+printc("decode-dimms version ".I2C_TOOLS_VER);
 printh('Memory Serial Presence Detect Decoder',
 'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner,
 Jean Delvare, Trent Piepho and others');