mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
updated workflow scripts...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e00aa5cdde
commit
5daaa02964
@ -212,6 +212,7 @@ 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
|
||||
#export TOTAL=`find . -path '*hi-res (RAW)/*.jpg' | wc -l`
|
||||
|
||||
find . -path '*hi-res (RAW)/*.jpg' -exec bash -c 'makepreview "$SIZE" "{}"' \;
|
||||
fi
|
||||
@ -224,6 +225,9 @@ if ! [ -z "$COMMON_PREVIEWS" ] ; then
|
||||
if ! [ -e "./$COMMON_PREVIEWS" ] ; then
|
||||
mkdir -p "./$COMMON_PREVIEWS"
|
||||
fi
|
||||
#if [ -z $TOTAL ] ; then
|
||||
# export TOTAL=`find . -path '*hi-res (RAW)/*.jpg' | wc -l`
|
||||
#fi
|
||||
find . -type d \
|
||||
-name 'preview (RAW)' \
|
||||
-print \
|
||||
@ -235,6 +239,9 @@ fi
|
||||
|
||||
# build cache...
|
||||
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
|
||||
buildcache "./$COMMON_PREVIEWS/preview (RAW)"
|
||||
else
|
||||
|
||||
@ -17,19 +17,26 @@ exifup(){
|
||||
true
|
||||
}
|
||||
|
||||
# XXX this does not support absolute paths...
|
||||
if [[ $1 != "" ]] ; then
|
||||
if ! [ -d "$1" ] ; then
|
||||
echo "\"$1\": is not a directory."
|
||||
exit 1
|
||||
fi
|
||||
cd "./$1/DCIM/"
|
||||
if [ -e "$1/DCIM/preview/" ] ; then
|
||||
cd "$1/DCIM/"
|
||||
else
|
||||
cd "$1"
|
||||
fi
|
||||
exifup ./preview/
|
||||
exifup ./hi-res/
|
||||
cd "$DIR"
|
||||
else
|
||||
for d in */DCIM/ ; do
|
||||
cd "./$d"
|
||||
if [ -e "$1/DCIM/preview/" ] ; then
|
||||
cd "$d"
|
||||
else
|
||||
cd "$d/../"
|
||||
fi
|
||||
exifup ./preview/
|
||||
exifup ./hi-res/
|
||||
cd "$DIR"
|
||||
|
||||
@ -16,6 +16,7 @@ if(typeof(module) !== 'undefined' && module.exports){
|
||||
|
||||
|
||||
define(function(require){ var module = {}
|
||||
console.log('>>> browse')
|
||||
|
||||
|
||||
// XXX
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user