updated workflow scripts...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-09-07 15:06:45 +03:00
parent e00aa5cdde
commit 5daaa02964
3 changed files with 18 additions and 3 deletions

View File

@ -212,6 +212,7 @@ if [ -z $SKIP_PREVIEWS ] ; then
#export TOTAL=$(find . -type d -name 'hi-res (RAW)' -exec ls "{}" \; | wc -l) #export TOTAL=$(find . -type d -name 'hi-res (RAW)' -exec ls "{}" \; | wc -l)
# XXX do not know how to pass and modify a var... # XXX do not know how to pass and modify a var...
#export CUR=1 #export CUR=1
#export TOTAL=`find . -path '*hi-res (RAW)/*.jpg' | wc -l`
find . -path '*hi-res (RAW)/*.jpg' -exec bash -c 'makepreview "$SIZE" "{}"' \; find . -path '*hi-res (RAW)/*.jpg' -exec bash -c 'makepreview "$SIZE" "{}"' \;
fi fi
@ -224,6 +225,9 @@ if ! [ -z "$COMMON_PREVIEWS" ] ; then
if ! [ -e "./$COMMON_PREVIEWS" ] ; then if ! [ -e "./$COMMON_PREVIEWS" ] ; then
mkdir -p "./$COMMON_PREVIEWS" mkdir -p "./$COMMON_PREVIEWS"
fi fi
#if [ -z $TOTAL ] ; then
# export TOTAL=`find . -path '*hi-res (RAW)/*.jpg' | wc -l`
#fi
find . -type d \ find . -type d \
-name 'preview (RAW)' \ -name 'preview (RAW)' \
-print \ -print \
@ -235,6 +239,9 @@ fi
# build cache... # build cache...
if [ -z $SKIP_CACHE ] ; then if [ -z $SKIP_CACHE ] ; then
#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 if ! [ -z "$COMMON_PREVIEWS" ] && [ -e "./$COMMON_PREVIEWS/preview (RAW)" ] ; then
buildcache "./$COMMON_PREVIEWS/preview (RAW)" buildcache "./$COMMON_PREVIEWS/preview (RAW)"
else else

View File

@ -17,19 +17,26 @@ exifup(){
true true
} }
# XXX this does not support absolute paths...
if [[ $1 != "" ]] ; then if [[ $1 != "" ]] ; then
if ! [ -d "$1" ] ; then if ! [ -d "$1" ] ; then
echo "\"$1\": is not a directory." echo "\"$1\": is not a directory."
exit 1 exit 1
fi fi
cd "./$1/DCIM/" if [ -e "$1/DCIM/preview/" ] ; then
cd "$1/DCIM/"
else
cd "$1"
fi
exifup ./preview/ exifup ./preview/
exifup ./hi-res/ exifup ./hi-res/
cd "$DIR" cd "$DIR"
else else
for d in */DCIM/ ; do for d in */DCIM/ ; do
cd "./$d" if [ -e "$1/DCIM/preview/" ] ; then
cd "$d"
else
cd "$d/../"
fi
exifup ./preview/ exifup ./preview/
exifup ./hi-res/ exifup ./hi-res/
cd "$DIR" cd "$DIR"

View File

@ -16,6 +16,7 @@ if(typeof(module) !== 'undefined' && module.exports){
define(function(require){ var module = {} define(function(require){ var module = {}
console.log('>>> browse')
// XXX // XXX