Re: [PATCH] gendocs.sh: don't overwrite existing index.html

2021-03-02 Thread Bernhard Voelker
On 3/1/21 8:22 PM, Sergey Poznyakoff wrote: > Actually, the main point is to avoid destroying the existing file with > a meaningless dangling symlink. That being said, I have nothing > against checking for existence of "${PACKAGE}.html" as well. Looks good to me thanks. Have a nice day, Berny

Re: [PATCH] gendocs.sh: don't overwrite existing index.html

2021-03-01 Thread Sergey Poznyakoff
Hi Bernhard, > If the point is to avoid a dangling symlink, then shouldn't this > (also) check for "${PACKAGE}.html"? Actually, the main point is to avoid destroying the existing file with a meaningless dangling symlink. That being said, I have nothing against checking for existence of

Re: [PATCH] gendocs.sh: don't overwrite existing index.html

2021-03-01 Thread Bernhard Voelker
On 3/1/21 3:14 PM, Sergey Poznyakoff wrote: > When generating html output, texi2html 5.0 creates index.html > file, instead of $PORJECT.html. Don't overwrite it with dangling > symlink. > -ln -sf ${PACKAGE}.html index.html > +if [ ! -f index.html ]; then > + ln -sf ${PACKAGE}.html

[PATCH] gendocs.sh: don't overwrite existing index.html

2021-03-01 Thread Sergey Poznyakoff
When generating html output, texi2html 5.0 creates index.html file, instead of $PORJECT.html. Don't overwrite it with dangling symlink. --- build-aux/gendocs.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh index