use a pipe to simplify the Makefile

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

 



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
_______________________________________________
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