[libpng15] Revised scripts/dfn.awk to work with the buggy MSYS awk that has

trouble with CRLF line endings.
This commit is contained in:
John Bowler
2013-02-27 13:41:23 -06:00
committed by Glenn Randers-Pehrson
parent ecfc22a681
commit da78c32207
3 changed files with 9 additions and 5 deletions

View File

@@ -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) {