INN commit: trunk/support (makedepend)

INN Commit Russ_Allbery at isc.org
Sun Jan 11 10:35:58 UTC 2009


    Date: Sunday, January 11, 2009 @ 02:35:57
  Author: iulius
Revision: 8284

Fix a bug in "make depend":  an empty line could be created.

Example:
  --
  header.h \
  
  --

Remove it, so that we only have:
  --
  header.h
  --

Modified:
  trunk/support/makedepend

------------+
 makedepend |    2 ++
 1 file changed, 2 insertions(+)

Modified: makedepend
===================================================================
--- makedepend	2009-01-11 09:16:40 UTC (rev 8283)
+++ makedepend	2009-01-11 10:35:57 UTC (rev 8284)
@@ -24,12 +24,14 @@
         gcc -MM $flags "$source" | sed "s%^[^.: ][^.: ]*%$base%" \
             | sed -e 's%\(^\|  *\)/[^ ]* *%\1%g' -e '/^ *\\$/d' \
                   -e 's/  *\(  \| \\\)/\1/g' \
+            | sed -e '/ \\$/N; s/ \\\n *$//g; P; D' \
             >> .makefile.tmp
         ;;
     *)
         gcc -MM $flags "$source" \
             | sed -e 's%\(^\|  *\)/[^ ]*%\1%g' -e '/^ *\\$/d' \
                   -e 's/  *\(  \| \\\)/\1/g' \
+            | sed -e '/ \\$/N; s/ \\\n *$//g; P; D' \
             >> .makefile.tmp
         ;;
     esac




More information about the inn-committers mailing list