Re: side not found

Holger Wansing <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <[email protected]>
Hi,

Shlomi Fish <[email protected]> wrote:
> On Fri, 10 Apr 2020 12:13:30 +0200
> Holger Wansing <[email protected]> wrote:
> 
> > Hi,
> > 
> > Shlomi Fish <[email protected]> wrote:
> > > Hi!
> > > 
> > > On Fri, 10 Apr 2020 04:03:06 +0200
> > > C_G_Zeller <[email protected]> wrote:
> > >   
> > > > debian-handbook
> > > > 
> > > > Side not found
> > > > 
> > > > 6.6
> > > > 
> > > > 6.6.1
> > > > 
> > > > 6.6.2
> > > > 
> > > > Have a nice Day
> > > >   
> > > 
> > > I don't understand. Please clarify. Also see
> > > https://github.com/shlomif/writing-the-perfect-question .  
> > 
> > That's
> > Bug#818927: Fw: broken links, German Debian handbook 'Das Debian
> > Administrationshandbuch'
> > 
> 
> I see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818927 - thanks for
> clarifying.

I found the problem in 
https://salsa.debian.org/webmaster-team/cron/-/blob/master/parts/7doc line 206:

The if clause

	if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
            pagecopy2 $lang "$pagefile" "$destdir/$(basename $page .html).$lang.html"
        ...

checks if the files to be processed are html files with language extensions,
otherwise it skips the file in question.
In case of the file "sect.dist-upgrade.html" the 'if' does not give an EQUAL,
because the "de.html" at the end is truncated ("de" is seen as language extension,
not as part of the base-filename). That's why that file is not copied and is
therefore missing on the webpage.

So adding a dot like
-	if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
+	if [ "$(basename $page .$lang.html)" = "$(basename $page)" ]; then
ensures, that only language extensions are truncated, and everything works
as expected.


Holger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.