[Gimp-docs] use a pipe to simplify the Makefile
crquan at gmail.com
crquan at gmail.com
Sun Nov 18 08:10:43 PST 2007
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
More information about the Gimp-docs
mailing list