[tlbuild] dvisvgm

Martin Gieseking martin.gieseking at uos.de
Thu Feb 9 09:59:34 CET 2017


Hi Mojca,

Am 09.02.2017 um 05:11 schrieb Mojca Miklavec:
> I'm experiencing another problem:
>
> Making all in doc
> stat: illegal option -- c
> usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
> make[2]: Entering directory `/path/to/dvisvgm-2.1.1/doc'
> if [ `type -p asciidoc` ]; then \
>         asciidoc -a icons -a 'iconsdir=.' -a badges -a
> 'revnumber=2.1.1' --unsafe -bdocbook -dmanpage -o dvisvgm-man.xml
> dvisvgm.txt; \
>         sed -i "s#\(</refmeta>\)#<refmiscinfo
> class='date'></refmiscinfo>\n\1#" dvisvgm-man.xml; \
>     fi
> sed: 1: "dvisvgm-man.xml": extra characters at the end of d command

I guess, the stat command doesn't support option -c on macOS. You can 
either drop the sed command from doc/Makefile.am or replace
   stat -c %y
with
   stat -f %Sm
for example. It just adds the modification date to the xml file.


> The weird thing is that as soon as I re-run "make", the second attempt
> works just fine.

That's probably because asciidoc succeeded and created the required xml 
file with a current timestamp. When you call make again, the file is 
already there and doesn't need to be generated once more.

Martin


More information about the tlbuild mailing list