more minor tweaks and fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-10-29 09:23:49 +04:00
parent 28f48e7105
commit 552af3d47f

View File

@ -202,11 +202,27 @@ cd "./${ARCHIVE_ROOT}"
# make previews... # make previews...
if [ -z $SKIP_PREVIEWS ] ; then if [ -z $SKIP_PREVIEWS ] ; then
#export TOTAL=$(find . -type d -name 'hi-res (RAW)' -exec ls "{}" \; | wc -l)
# XXX do not know how to pass and modify a var...
#export CUR=1
find . -path '*hi-res (RAW)/*.jpg' -exec bash -c 'makepreview "$SIZE" "{}"' \; find . -path '*hi-res (RAW)/*.jpg' -exec bash -c 'makepreview "$SIZE" "{}"' \;
fi fi
# collect previews to one location...
# XXX test!!!
if ! [ -z $COMMON_PREVIEWS ] ; then
if ! [ -e "./$COMMON_PREVIEWS" ] ; then
mkdir -p "./$COMMON_PREVIEWS"
fi
find . -type d -name 'preview (RAW)' -exec mv "{}" "./$COMMON_PREVIEWS" \;
fi
# build cache... # build cache...
if [ -z $SKIP_CACHE ] ; then if [ -z $SKIP_CACHE ] ; then
find . -type d -name 'preview (RAW)' -exec buildcache "{}" \; find . -type d -name 'preview (RAW)' -exec buildcache "{}" \;
@ -214,14 +230,4 @@ fi
# collect previews to one location...
if ! [ -z $COMMON_PREVIEWS ] ; then
if ! [ -e "./$COMMON_PREVIEWS" ] ; then
mkdir -p "./$COMMON_PREVIEWS"
fi
find . -type d -name 'preview (RAW)' -exec mv "{}" "./$COMMON_PREVIEWS" \;
fi
# vim:set nowrap nospell : # vim:set nowrap nospell :