From da78c32207fa610e9bce756a7fd1629eb5e8e75f Mon Sep 17 00:00:00 2001 From: John Bowler Date: Wed, 27 Feb 2013 13:41:23 -0600 Subject: [PATCH] [libpng15] Revised scripts/dfn.awk to work with the buggy MSYS awk that has trouble with CRLF line endings. --- ANNOUNCE | 6 ++++-- CHANGES | 4 +++- scripts/dfn.awk | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 486cb0ba8..7b95e0908 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.5.15beta07 - February 23, 2013 +Libpng 1.5.15beta07 - February 27, 2013 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -62,9 +62,11 @@ Version 1.5.15beta06 [February 22, 2013] runtime checks Updated the INSTALL document. -Version 1.5.15beta07 [February 23, 2013] +Version 1.5.15beta07 [February 27, 2013] Revised INSTALL to recommend using CPPFLAGS instead of INCLUDES. Revised scripts/makefile.freebsd to respect ZLIBDIR and ZLIBINC. + Revised scripts/dfn.awk to work with the buggy MSYS awk that has trouble + with CRLF line endings. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index d780f971e..c897185b8 100644 --- a/CHANGES +++ b/CHANGES @@ -4020,9 +4020,11 @@ Version 1.5.15beta06 [February 22, 2013] runtime checks Updated the INSTALL document. -Version 1.5.15beta07 [February 23, 2013] +Version 1.5.15beta07 [February 27, 2013] Revised INSTALL to recommend using CPPFLAGS instead of INCLUDES. Revised scripts/makefile.freebsd to respect ZLIBDIR and ZLIBINC. + Revised scripts/dfn.awk to work with the buggy MSYS awk that has trouble + with CRLF line endings. =========================================================================== NOTICE November 17, 2012: diff --git a/scripts/dfn.awk b/scripts/dfn.awk index 8a5dab6f9..910704594 100644 --- a/scripts/dfn.awk +++ b/scripts/dfn.awk @@ -31,11 +31,11 @@ NR==1 && out == "/dev/null" { # Output can be sorted; two lines are recognized $1 == "PNG_DFN_START_SORT"{ - sort=$2 + sort=0+$2 next } -$1 == "PNG_DFN_END_SORT"{ +$1 ~ /^PNG_DFN_END_SORT/{ # Do a very simple, slow, sort; notice that blank lines won't be # output by this for (entry in array) {