docs-common Makefile.common,1.19,1.20

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Sun Dec 11 03:26:18 UTC 2005


Author: jtr

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28079

Modified Files:
	Makefile.common 
Log Message:
Allow a document 'figs/' directory to contain its own subdirectory
structure.  Copy the directory tree, but only populate it with files 
which pass the '-f glob' filter(s).  If no filters are given, "*" is
used as a default.



Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Makefile.common	10 Dec 2005 02:53:07 -0000	1.19
+++ Makefile.common	11 Dec 2005 03:26:10 -0000	1.20
@@ -73,11 +73,8 @@
 #  cp ${HTMLCSS} mydoc-en/fedora.css
 #  cp ${HTMLCSSEXTRA} mydoc-en/watermark.png
 #  cp ${FDPDIR}/docs-common/images/watermark.png mydoc-en/
-#  mkdir -p mydoc-en/figs
-#  cp -p figs/*-${LANG}.* mydoc-en/figs
+#  ${FDPDIR}/docs-common/bin/copy-figs -f '*.png' figs mydoc-en/
 # but we do avoid copying EPS files since they are nonsense to the HTML world.
-# Also, we create the figs directory only if the document dir has a "figs/".
-# I don't think we need to do this for a nochunks output, though.
 #
 define	HTML_template
 ${DOCBASE}-$(1)/index.html:: ${DOCBASE}-$(1).xml $$(XMLEXTRAFILES-$(1))
@@ -87,13 +84,9 @@
 	cp ${HTMLCSS} $(DOCBASE)-$(1)/fedora.css
 	[ -z "${HTMLCSSEXTRA}" ] || 					\
 		cp ${HTMLCSSEXTRA} $(DOCBASE)-$(1)/watermark.png
-	[ ! -d figs ] || (						\
-		mkdir -p ${DOCBASE}-$(1)/figs;				\
-		find figs -type f -iname '*.*' -print		|	\
-		egrep -vi '*.eps'				|	\
-		egrep '(.*-$(1)..*)|([^-]*[.][^-]*)'		|	\
-		while read x; do cp -f $$$${x} ${DOCBASE}-$(1)/figs; done \
-	) && exit 0
+	[ ! -d figs ] || 						\
+		${FDPDIR}/docs-common/bin/copy-figs -v -f '*.png'	\
+			figs $(DOCBASE)-$(1)
 endef
 #
 html::	$(foreach LANG,${LANGUAGES},$(DOCBASE)-$(LANG)/index.html)




More information about the Fedora-docs-commits mailing list