summaryrefslogtreecommitdiff
path: root/scripts/dfn.awk
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2013-02-27 13:36:08 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2013-02-27 13:36:08 -0600
commitccec786ca73f38eaf99ff09b3990a1918530b956 (patch)
tree312c6678304b967c60b4cb7d345d41ae2ae87280 /scripts/dfn.awk
parent2621be1bdb8ba271af4914461778476df087fe0f (diff)
downloadlibpng-ccec786ca73f38eaf99ff09b3990a1918530b956.tar.gz
[libpng16] Revised scripts/dfn.awk to work with the buggy MSYS awk that has
trouble with CRLF line endings.
Diffstat (limited to 'scripts/dfn.awk')
-rw-r--r--scripts/dfn.awk4
1 files changed, 2 insertions, 2 deletions
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) {