Re: Make validate broken

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

 



Am Montag, 9. Juli 2007 schrieb julien:
> Under Suse-10.2, I did all you told .
>
> xxx@linux-zhl6:~/SVN-fr/trunk> make validate ALL_LINGUAS="en"
> mkdir -p -- xml
> /usr/bin/xsltproc \
>           --nonet \
>           --xinclude \
>           --stringparam profile.lang en \
>           ./stylesheets/profile.xsl \
>           src/gimp.xml \
>
>           > xml/en.xml.tmp
>
> sed -e 's/xmlns[:a-z]*="[^"]*" //' \
>             -e 's/lang="[A-Za-z_;]*"/lang="en"/' \
>             -e '/^[ \t]*$/d' \
>           < xml/en.xml.tmp \
>
>           > xml/en.xml
>
> rm -f xml/en.xml.tmp
> /usr/bin/xmllint --noout xml/en.xml
> /usr/bin/xmllint --noout --valid xml/en.xml > /dev/null
> touch xml/stamp-en-valid
>
> Is this the new normal display for the "make validate"?

Hmm, yes ("make" is creating xml/en.xml).

BTW, you can suppress displaying a command line by prepending it 
with "@", e.g.
        @sed -e ...
or
        @rm -f $@.tmp
in Makefile/Makefile.am (do not remove the leading <TAB>).

For testing what "make" will do if you change source file "src/foo.xml", 
add the command line options "-n -W src/foo.xml", e.g.

        make -n -W src/foo.xml validate ALL_LINGUAS="en"

> If I have an error in a xml file, an error is also displayed, located
> in the en.xml file... weird! :

The error message used to go to a logfile:
        $(XMLLINT)  ...  2>xml/$*-validity-errors.log
 now they are displayed :
        $(XMLLINT) --noout --valid $< > /dev/null
and
        $(XMLLINT) --noout $@

(Another bug? It seems xmllint is called twice...)

[...]
> /usr/bin/xmllint --noout xml/en.xml
> /usr/bin/xmllint --noout --valid xml/en.xml > /dev/null

Yes, it's called twice. (Ok, it takes only 1 second...)

Ulf

Attachment: pgpKb1w4zAHIW.pgp
Description: PGP signature

_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux