summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-10-02 13:47:17 +0200
committerJean Delvare <jdelvare@suse.de>2019-10-02 13:47:17 +0200
commitdaa430031ffdd5d52d1dd0cdb35974d29ce4721b (patch)
tree2768d198c220312901e23a49e0fe21a5e2204d28
parent78ed68308b586b8acd3d58b0e46b73580e34667f (diff)
downloadi2c-tools-git-daa430031ffdd5d52d1dd0cdb35974d29ce4721b.tar.gz
decode-dimms: Fix the version string
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>
-rwxr-xr-xeeprom/decode-dimms9
1 files changed, 3 insertions, 6 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index a752a47..6caa395 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -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');