Commit 3708da2a by Roger Sayle Committed by Roger Sayle

opts.sh: Work around a mysterious feature in cygwin's gawk where specifying the input...


	* opts.sh: Work around a mysterious feature in cygwin's gawk
	where specifying the input files explicitly has a different
	behavior to piping them via stdin.

From-SVN: r67946
parent 9756074d
2003-06-14 Roger Sayle <roger@eyesopen.com>
* opts.sh: Work around a mysterious feature in cygwin's gawk
where specifying the input files explicitly has a different
behavior to piping them via stdin.
2003-06-14 Neil Booth <neil@daikokuya.co.uk>
* doc/sourcebuild.texi: Update.
......
......@@ -33,12 +33,12 @@ SORT=sort # Could be /bin/sort or /usr/bin/sort
C_FILE=$1; shift
H_FILE=$1; shift
cat "$@" | ${AWK} '
${AWK} '
BEGIN{ RS=""; FS="\n" }
# Ignore comments and blank lines
/^[ \t]*(;|$)/ { next }
/^[^ \t]/ { gsub ("\n", "\034", $0); print }
' | ${SORT} | ${AWK} '
' "$@" | ${SORT} | ${AWK} '
function switch_flags (langs, flags)
{
langs = ":" langs ":"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment