summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-12-13 16:45:47 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-12-13 16:45:47 +0000
commita2b64d8da9f057e5db398238f06dbbdeb279ef41 (patch)
treefdf079e224463f6df969dbe576628e6517a45656 /bin
parentb61f682a46852bd8f25db28a931d646d8e32f66c (diff)
downloadfedora-doc-utils-a2b64d8da9f057e5db398238f06dbbdeb279ef41.tar.gz
fedora-doc-utils-a2b64d8da9f057e5db398238f06dbbdeb279ef41.tar.xz
fedora-doc-utils-a2b64d8da9f057e5db398238f06dbbdeb279ef41.zip
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/copy-figs3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/copy-figs b/bin/copy-figs
index a42fc74..81b41f3 100755
--- a/bin/copy-figs
+++ b/bin/copy-figs
@@ -209,7 +209,8 @@ do
# 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