RSS/Atom feed Twitter
Site is read-only, email is disabled

use a pipe to simplify the Makefile

This discussion is connected to the gimp-docs-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

use a pipe to simplify the Makefile crquan at gmail.com 18 Nov 17:10
crquan at gmail.com
2007-11-18 17:10:43 UTC (about 17 years ago)

use a pipe to simplify the Makefile

the original Makefile use a tmp file, but it's not needed anymore.

Index: Makefile.am =================================================================== --- Makefile.am (revision 2184)
+++ Makefile.am (working copy)
@@ -57,16 +57,11 @@ xml/%.xml: src/gimp.xml stylesheets/prof --stringparam profile.lang $* \
$(top_srcdir)/stylesheets/profile.xsl \ $< \
- > $@.tmp
-
- @sed -e 's/xmlns[:a-z]*="[^"]*" //' \ + | sed -e 's/xmlns[:a-z]*="[^"]*" //' \ -e 's/lang="[A-Za-z_;]*"/lang="$*"/' \ -e '/^[ \t]*$$/d' \
- < $@.tmp \
> $@

- @rm -f $@.tmp
-
if HAVE_XMLLINT
@$(XMLLINT) --noout $@
endif

--
Cheng