[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gendocs.sh: don't overwrite existing index.html
From: |
Bernhard Voelker |
Subject: |
Re: [PATCH] gendocs.sh: don't overwrite existing index.html |
Date: |
Mon, 1 Mar 2021 19:53:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
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 index.html
> + fi
If the point is to avoid a dangling symlink, then shouldn't this
(also) check for "${PACKAGE}.html"?
Have a nice day,
Berny