old cvs tags in source

From: Andreas Schulze <sca_at_andreasschulze.de>
Date: Thu, 28 Jun 2012 14:06:24 +0200 (CEST)

Hello,

in virtualy every sourcefile of opendkim there is such text:

#ifndef lint
static char opendkim_c_id[] = "_at_(#)$Id: opendkim.c,v 1.230 2010/10/28 06:10:07 cm-msk Exp $";
#endif /* !lint */

These tags are not used anymore since version 2.4.1 or so.
They should be removed. Because every instance generates a warning:
opendkim.c:11: warning: 'opendkim_c_id' defined but not used


to remove such blocks you may use this (tested!) code:
for f in `grep --files-with-matches --recursive '^#ifndef lint' $srcdir`; do
  cat $f | perl -e '$i .= $_ while (<>); $i =~ s/#ifndef lint.*\n.*\n#endif.*\n\n//g; print $i;' >
$f.without_lint && mv $f.without_lint $f
done

Andreas
Received on Thu Jun 28 2012 - 12:06:39 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:33 PST