[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: *** [maint-guide-publish] Error 2



On Sun, Apr 28, 2002 at 01:06:38PM -0700, Osamu Aoki wrote:
> Hi,
> 
> Something wrong in maint-guide:
> 
> install -p -m 644 maint-guide*.html/*.html /org/www.debian.org/www/doc/manuals/minstall: maint-guide*.html/*.html: No such file or directory
> make[1]: *** [publish] Error 1
> make[1]: Leaving directory `/org/www.debian.org/ddp/manuals.sgml/maint-guide'
> make: *** [maint-guide-publish] Error 2
> make: Leaving directory `/org/www.debian.org/ddp/manuals.sgml'
> 

After checking the logs the error seems to be here:

if [ maint-guide.sgml -nt maint-guide.en.html/index.en.html ]; then \
          echo debiandoc2html -c -l en maint-guide.sgml; \
          debiandoc2html -c -l en maint-guide.sgml; \
          mv maint-guide.html maint-guide.en.html; \
        fi
for i in *.??*.sgml; do \
          j=${i#maint-guide.}; lang=${j%.sgml}; \
  if [ $i -nt maint-guide.$lang.html/index.$lang.html ]; then \
            echo debiandoc2html -c -l $lang $i; \
            debiandoc2html -c -l $lang $i; \
          fi; \
        done


Sine maint.guide.en.html does not exist (cleaned before) the -nt clause
evaluates to false. IMHO this should be

[ ! -f maint-guide.en.html/index.en.html ] || 
[  maint-guide.sgml -nt maint-guide.en.html/index.en.html ] && {
	....
}


Which seems more correct. Suggestions? 

	Javi





-- 
To UNSUBSCRIBE, email to debian-doc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: