summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNozomu KURASAWA <nabetaro@caldron.jp>2012-10-24 22:07:16 +0000
committerNozomu KURASAWA <nabetaro@caldron.jp>2012-10-24 22:07:16 +0000
commite7970ca08a2dd26a9188eb7994f9fc80ab924a4d (patch)
tree2dcd54023e1978789d550be04f5f8bf7a55df5a0 /scripts
parent0c607b8e2d70ce2ca4bb07f269161c7bc192bec4 (diff)
downloadinstallation-guide-e7970ca08a2dd26a9188eb7994f9fc80ab924a4d.zip
Fixed for file existence check, work with gawk 4.x and 3.x.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/merge_xml.awk3
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
}