From 44517bcd44fc05bf3e07618f724630d5ef7d5134 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 3 Jul 2013 03:14:40 +0400 Subject: [PATCH] process-archive.sh now understands arguments... Signed-off-by: Alex A. Naanou --- scripts/process-archive.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/process-archive.sh b/scripts/process-archive.sh index e6f56b05..0e4da1bf 100755 --- a/scripts/process-archive.sh +++ b/scripts/process-archive.sh @@ -1,6 +1,12 @@ #!/bin/bash -ARCHIVE_ROOT="." +if [ $1 ] ; then + ARCHIVE_ROOT="$1" +else + ARCHIVE_ROOT="." +fi + +echo "Doing: \"$ARCHIVE_ROOT\"" METADATA_DIR="metadata" @@ -40,6 +46,7 @@ SIZE=900 COMPRESSION=90 +# XXX remove this in production... PATH=$PATH:/mnt/d/Program\ Files/vips/bin/ # makepreview SIZE IN OUT