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
- Previous message (by thread): docs-common/bin copy-figs,1.2,1.3
- Next message (by thread): documentation-guide Makefile, 1.10, 1.11 acknowledgments-en.xml, 1.8, 1.9 docs-getting-files-en.xml, 1.8, 1.9 documentation-guide-en.xml, 1.21, 1.22 docs-converting-en.xml, 1.1, NONE docs-converting-zh_CN.xml, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message (by thread): docs-common/bin copy-figs,1.2,1.3
- Next message (by thread): documentation-guide Makefile, 1.10, 1.11 acknowledgments-en.xml, 1.8, 1.9 docs-getting-files-en.xml, 1.8, 1.9 documentation-guide-en.xml, 1.21, 1.22 docs-converting-en.xml, 1.1, NONE docs-converting-zh_CN.xml, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-docs-commits
mailing list