From a2b64d8da9f057e5db398238f06dbbdeb279ef41 Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Tue, 13 Dec 2005 16:45:47 +0000 Subject: 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. --- bin/copy-figs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit