diff options
author | Nozomu KURASAWA <nabetaro@caldron.jp> | 2012-10-24 22:07:16 +0000 |
---|---|---|
committer | Nozomu KURASAWA <nabetaro@caldron.jp> | 2012-10-24 22:07:16 +0000 |
commit | e7970ca08a2dd26a9188eb7994f9fc80ab924a4d (patch) | |
tree | 2dcd54023e1978789d550be04f5f8bf7a55df5a0 /scripts/merge_xml.awk | |
parent | 0c607b8e2d70ce2ca4bb07f269161c7bc192bec4 (diff) | |
download | installation-guide-e7970ca08a2dd26a9188eb7994f9fc80ab924a4d.zip |
Fixed for file existence check, work with gawk 4.x and 3.x.
Diffstat (limited to 'scripts/merge_xml.awk')
-rw-r--r-- | scripts/merge_xml.awk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/merge_xml.awk b/scripts/merge_xml.awk index 3f692a8a8..cf87055d9 100644 --- a/scripts/merge_xml.awk +++ b/scripts/merge_xml.awk @@ -80,8 +80,7 @@ function parse_file(PARSEFILE, FNAME, fname, nwline, comment_count) { fname = FNAME # Test whether file exists - getline <PARSEFILE - if (length(ERRNO) != 0) { + if ( ( getline <PARSEFILE ) <= 0 ) { print "** Error: file '" PARSEFILE "' does not exist!" >>LOG return } |