Blame SOURCES/fix-unexpanded-revision-strings.patch

a6904f
diff --git a/doc/developers/release_checklist b/doc/developers/release_checklist
a6904f
index b84256b5..a97745e1 100644
a6904f
--- a/doc/developers/release_checklist
a6904f
+++ b/doc/developers/release_checklist
a6904f
@@ -10,7 +10,7 @@ Release steps:
a6904f
 - Update the CHANGES file (set version and release date)
a6904f
 - Update doc/developers/lm_sensors.lsm (Version, Entered-date and Primary-site)
a6904f
 - Update doc/libsensors-API.txt and SENSORS_API_VERSION in lib/sensors.h
a6904f
-- Update version.h
a6904f
+- grep for LM_VERSION and update values of the constants
a6904f
 - Commit
a6904f
 - Tag the release using git:
a6904f
   git tag V3-x-x
a6904f
@@ -22,6 +22,7 @@ After release, remember to:
a6904f
   https://github.com/lm-sensors/lm-sensors/archive/V3-x-x/lm-sensors-3-x-x.tar.gz
a6904f
 - Add a news item to https://hwmon.wiki.kernel.org/lm_sensors
a6904f
 - Announce on the lm-sensors mailing list
a6904f
-- Add "+git" to version.h and commit
a6904f
+- grep for LM_VERSION and add "+git" to the values of the constants
a6904f
+- Commit
a6904f
 - Send lm_sensors.lsm to the LSM by mailing it to lsm@qqx.org with the
a6904f
   subject `add' (no quotes)
a6904f
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
a6904f
index 78b0b5a1..07df0fbe 100755
a6904f
--- a/prog/detect/sensors-detect
a6904f
+++ b/prog/detect/sensors-detect
a6904f
@@ -38,12 +38,9 @@ foreach ('/usr/sbin', '/usr/local/sbin', '/sbin') {
a6904f
 #########################
a6904f
 
a6904f
 use constant NO_CACHE => 1;
a6904f
+use constant LM_VERSION => '3.4.0+git';
a6904f
 use vars qw(@pci_adapters @chip_ids @ipmi_ifs @non_hwmon_chip_ids
a6904f
-	    $i2c_addresses_to_scan $revision @i2c_byte_cache %opt);
a6904f
-
a6904f
-$revision = '$Revision$ ($Date$)';
a6904f
-$revision =~ s/\$\w+: (.*?) \$/$1/g;
a6904f
-$revision =~ s/ \([^()]*\)//;
a6904f
+	    $i2c_addresses_to_scan @i2c_byte_cache %opt);
a6904f
 
a6904f
 # This is the list of SMBus or I2C adapters we recognize by their PCI
a6904f
 # signature. This is an easy and fast way to determine which SMBus or I2C
a6904f
@@ -7511,7 +7508,7 @@ sub main
a6904f
 		system("/sbin/service", "lm_sensors", "stop");
a6904f
 	}
a6904f
 
a6904f
-	print "# sensors-detect revision $revision\n";
a6904f
+	print "# sensors-detect version ".LM_VERSION."\n";
a6904f
 	initialize_dmi_data();
a6904f
 	print_dmi_summary();
a6904f
 	print_kernel_version();
a6904f
diff --git a/prog/init/fancontrol.init b/prog/init/fancontrol.init
a6904f
index eabe734c..8ab2c929 100755
a6904f
--- a/prog/init/fancontrol.init
a6904f
+++ b/prog/init/fancontrol.init
a6904f
@@ -1,7 +1,5 @@
a6904f
 #!/bin/sh
a6904f
 #
a6904f
-# $Id$
a6904f
-#
a6904f
 # fancontrol
a6904f
 #
a6904f
 # chkconfig: 2345 90 01
a6904f
diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig
a6904f
index a40acd5c..3ecdca5b 100755
a6904f
--- a/prog/pwm/pwmconfig
a6904f
+++ b/prog/pwm/pwmconfig
a6904f
@@ -29,8 +29,7 @@
a6904f
 #
a6904f
 #
a6904f
 
a6904f
-REVISION=$(echo '$Revision$' | cut -d' ' -f2)
a6904f
-REVDATE=$(echo '$Date$' | cut -d' ' -f2)
a6904f
+LM_VERSION='3.4.0+git'
a6904f
 PIDFILE="/var/run/fancontrol.pid"
a6904f
 
a6904f
 if [ -f "$PIDFILE" ]
a6904f
@@ -48,7 +47,7 @@ then
a6904f
 	exit 1
a6904f
 fi
a6904f
 
a6904f
-echo "# pwmconfig revision $REVISION ($REVDATE)"
a6904f
+echo "# pwmconfig version $LM_VERSION"
a6904f
 echo 'This program will search your sensors for pulse width modulation (pwm)'
a6904f
 echo 'controls, and test each one to see if it controls a fan on'
a6904f
 echo 'your motherboard. Note that many motherboards do not have pwm'