X-Git-Url: https://rtime.felk.cvut.cz/gitweb/l4.git/blobdiff_plain/ea2b444545b928dd2495d1b8ac40d1ffbb8e446b..d1e11ef9d33b46388b8234795a9aacc92d1dbe23:/l4/pkg/libpng/lib/dist/scripts/checksym.awk diff --git a/l4/pkg/libpng/lib/dist/scripts/checksym.awk b/l4/pkg/libpng/lib/dist/scripts/checksym.awk index ba4c99b56..6857dff1c 100755 --- a/l4/pkg/libpng/lib/dist/scripts/checksym.awk +++ b/l4/pkg/libpng/lib/dist/scripts/checksym.awk @@ -5,8 +5,9 @@ # awk -f checksym.awk official-def list-to-check # # Output is a file in the current directory called 'symbols.new', -# stdout holds error messages. Error code indicates success or -# failure. +# the value of the awk variable "of" (which can be changed on the +# command line if required.) stdout holds error messages. Error +# code indicates success or failure. # # NOTE: this is a pure, old fashioned, awk script. It will # work with any awk @@ -21,6 +22,7 @@ BEGIN{ mastero = 0 # highest ordinal in master file symbolo = 0 # highest ordinal in png.h missing = "error"# log an error on missing symbols + of="symbols.new" # default to a fixed name } # Read existing definitions from the master file (the first @@ -151,11 +153,11 @@ END{ # Finally generate symbols.new if (symbol[o] != "") - print " " symbol[o], "@" o > "symbols.new" + print " " symbol[o], "@" o > of } if (err != 0) { - print "*** A new list is in symbols.new ***" + print "*** A new list is in", of, "***" exit 1 } }