Hello Holger,
On Tue, 23 Oct 2012 19:40:55 +0200
Holger Wansing <linux@wansing-online.de> wrote:
> It seems, that the second step has problems:
> the command returns without error, but in ./integrated/en there is a
> log file "merge_xml.en.log", and that comtains lot of things like this:
>
> Merging XML files per 'chapter'...
> Processing: bookinfo.xml
> ** Error: file '/tmp/merge_xml.14261/in/bookinfo.xml' does not exist!
> Processing: preface.xml
> ** Error: file '/tmp/merge_xml.14261/in/preface.xml' does not exist!
> Processing: welcome/welcome.xml
> ** Error: file '/tmp/merge_xml.14261/in/welcome/welcome.xml' does not exist!
I had ever seen that error.
4 months ago, scripts/merge_xml.awk put that message.
$ LANG=C dpkg -l gawkDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii gawk 1:4.0.1+dfsg amd64 GNU awk, a pattern scanning and p
gawk's getline sets error message strings to ERRNO when file cannot be read.
But in scripts/merge_xml.awk, it expected that ERRNO was integer.
So, I fixed below:
Index: scripts/merge_xml.awk
===================================================================
--- scripts/merge_xml.awk (revision 67669)
+++ scripts/merge_xml.awk (revision 67670)
@@ -81,7 +81,7 @@
# Test whether file exists
getline <PARSEFILE
- if (ERRNO != 0) {
+ if (length(ERRNO) != 0) {
print "** Error: file '" PARSEFILE "' does not exist!" >>LOG
return
}
Unfortunatly, the changes may be wrong.
I will try to fix the problem by the more safe method.
Please tell me your gawk's version.
Regards,
--
+--------------------------------------------------------+
KURASAWA Nozomu (nabetaro) <nabetaro @ caldron.jp>
GnuPG FingerPrint:
F3A9 35FC C5D5 7FBC 7009 895A D5BE 94B9 4E90 7A5F
+--------------------------------------------------------+
Attachment:
pgpmaNAbfwMku.pgp
Description: PGP signature