From: Simon Wilkinson Date: Sat, 26 Jun 2010 14:35:07 +0000 (+0100) Subject: RPM Packaging: Skip comments in configure.in X-Git-Tag: openafs-devel-1_5_75~70 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=370872207820e08eb58f497b4a0a49c28b18077d;p=packages%2Fo%2Fopenafs.git RPM Packaging: Skip comments in configure.in Skip comments in the configure.in file, so we don't end up using the commented out version information. Change-Id: I14bef1d448b77c915aa04b3fe555b270ce20ac67 Reviewed-on: http://gerrit.openafs.org/2261 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/packaging/RedHat/makesrpm.pl b/src/packaging/RedHat/makesrpm.pl index 4b3601c14..f6b931e4b 100755 --- a/src/packaging/RedHat/makesrpm.pl +++ b/src/packaging/RedHat/makesrpm.pl @@ -48,6 +48,8 @@ my $linuxrel; my $fh = new IO::File $srcdir."/configure.in" or die "Unable to find unpacked configure.in file"; while(<$fh>) { + next if (/^\s*\#/); + if (/AM_INIT_AUTOMAKE\(openafs,(.*)\)/) { $afsversion = $1; next;