started moving away from legacy buildcache command -- process-archive.sh now will use ig by default.

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-01-17 00:09:51 +03:00
parent 542c5a04e3
commit f74fb5893b

View File

@ -328,15 +328,24 @@ fi
# build cache...
if [ -z $SKIP_CACHE ] ; then
# a little tweak to make build cache work...
export PYTHONIOENCODING=UTF-8
# ig...
if ! [ -z `command -v ig` ] ; then
CACHE="ig init"
# buildcache (legacy)...
elif [ -z `command -v buildcache` ] ; then
# a little tweak to make build cache work...
export PYTHONIOENCODING=UTF-8
CACHE=buildcache
fi
#if [ -z $TOTAL ] ; then
# export TOTAL=`find . -path '*hi-res (RAW)/*.jpg' | wc -l`
#fi
if ! [ -z "$COMMON_PREVIEWS" ] && [ -e "./$COMMON_PREVIEWS/preview (RAW)" ] ; then
buildcache "./$COMMON_PREVIEWS/preview (RAW)"
$CACHE "./$COMMON_PREVIEWS/preview (RAW)"
else
find . -type d -name 'preview (RAW)' -exec buildcache "{}" \;
find . -type d -name 'preview (RAW)' -exec $CACHE "{}" \;
fi
fi