[MPlayer-DOCS] r30037 - trunk/DOCS/xml/Makefile.inc

diego subversion at mplayerhq.hu
Mon Dec 14 04:50:34 CET 2009


Author: diego
Date: Mon Dec 14 04:50:34 2009
New Revision: 30037

Log:
Avoid hackish shell loop to symlink missing XML source files.
Instead, employ make syntax to generate the shell command arguments.

Modified:
   trunk/DOCS/xml/Makefile.inc

Modified: trunk/DOCS/xml/Makefile.inc
==============================================================================
--- trunk/DOCS/xml/Makefile.inc	Mon Dec 14 04:43:54 2009	(r30036)
+++ trunk/DOCS/xml/Makefile.inc	Mon Dec 14 04:50:34 2009	(r30037)
@@ -31,8 +31,6 @@ $(HTMLDIR)/MPlayer.html: main.xml $(SING
 	cd .. && sh configure
 
 $(SYMLINKS_DEPS):
-	for file in ../en/*.xml ; do \
-	test -r `basename $$file` || ln -s $$file `basename $$file` ; \
-	done
+	test -r $(@F) || ln -s ../en/$@ $@
 
 .PHONY: all html-chunked html-single xmllint


More information about the MPlayer-DOCS mailing list