docs-common/bin copy-figs,1.3,1.4

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Tue Dec 13 16:45:55 UTC 2005


Author: jtr

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

Modified Files:
	copy-figs 
Log Message:
Create necessary "figs/*" subdirectory paths automatically if the
Manifest-${LANG} file doesn't contain them.  This invokes an extra
"mkdir -p" for every image, but we don't that many images, on average.



Index: copy-figs
===================================================================
RCS file: /cvs/docs/docs-common/bin/copy-figs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- copy-figs	13 Dec 2005 16:39:01 -0000	1.3
+++ copy-figs	13 Dec 2005 16:45:47 -0000	1.4
@@ -209,7 +209,8 @@
 	# Copy file if we like it
 	if [ "${copyIt}" = "yes" ]; then
 		[ "${VERBOSE}" ] || echo >&2 "Copying file |$fn|"
-		cp "${fn}" "${DST}/${rp}"
+		/bin/mkdir -p $(/usr/bin/dirname "${DST}/${rp}")
+		/bin/cp "${fn}" "${DST}/${rp}"
 	else
 		[ "${VERBOSE}" ] || echo >&2 "Rejecting file |$fn|"
 	fi




More information about the Fedora-docs-commits mailing list