diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2005-12-13 16:45:47 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2005-12-13 16:45:47 +0000 |
commit | a2b64d8da9f057e5db398238f06dbbdeb279ef41 (patch) | |
tree | fdf079e224463f6df969dbe576628e6517a45656 /bin | |
parent | b61f682a46852bd8f25db28a931d646d8e32f66c (diff) | |
download | fedora-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-x | bin/copy-figs | 3 |
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 |