From b008a7ac784718bf609ab45ebb2c3749fc596203 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 18 Jul 2005 19:00:49 +0000 Subject: [PATCH] Print the CVS revision as the first line of output (attempt). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3041 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index c01767df..b0f41e27 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -45,7 +45,9 @@ $ENV{PATH} = '/usr/local/sbin:'.$ENV{PATH} # CONSTANT DECLARATIONS # ######################### -use vars qw(@pci_adapters @chip_ids @superio_ids); +use vars qw(@pci_adapters @chip_ids @superio_ids $revision); + +$revision = '$Revision$ ($Date$)'; # This is the list of SMBus or I2C adapters we recognize by their PCI # signature. This is an easy and fast way to determine which SMBus or I2C @@ -4996,6 +4998,7 @@ sub main initialize_modules_list; initialize_kernel_version; + print "# sensors-detect revision $revision\n"; print "\nThis program will help you determine which I2C/SMBus modules you need to\n", "load to use lm_sensors most effectively. You need to have i2c and\n", "lm_sensors installed before running this program.\n";