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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 eeprom/decode-dimms |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

--- 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');

-- 
Jean Delvare
SUSE L3 Support



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux