Changeset 5089

Show
Ignore:
Timestamp:
01/04/08 17:34:36 (6 years ago)
Author:
khali
Message:

Switch to SVN revision numbering, so that the version is always up-to-date.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/eeprom/decode-dimms.pl

    r5088 r5089  
    4848use Fcntl qw(:DEFAULT :seek); 
    4949use vars qw($opt_html $opt_body $opt_bodyonly $opt_igncheck $use_sysfs 
    50             @vendors %decode_callback); 
     50            @vendors %decode_callback $revision); 
     51 
     52$revision = '$Revision$ ($Date$)'; 
     53$revision =~ s/\$\w+: (.*?) \$/$1/g; 
     54$revision =~ s/ \([^()]*\)//; 
    5155 
    5256@vendors = ( 
     
    390394} 
    391395 
     396sub printc ($) # print comment 
     397{ 
     398        my ($comment) = @_; 
     399        if ($opt_html) { 
     400                $comment =~ s/</\&lt;/sg; 
     401                $comment =~ s/>/\&gt;/sg; 
     402                $comment =~ s/\n/<br>\n/sg; 
     403                print "<!-- $comment -->\n"; 
     404        } else { 
     405                print "# $comment\n"; 
     406        } 
     407} 
     408 
    392409# Parameter: bytes 0-63 
    393410sub decode_sdr_sdram($) 
     
    10371054} 
    10381055 
     1056printc "$0 version $revision"; 
    10391057printh 'Memory Serial Presence Detect Decoder', 
    10401058'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, 
    1041 Jean Delvare and others 
    1042 Version 2.10.2'; 
     1059Jean Delvare and others'; 
    10431060 
    10441061