From: hackbard Date: Tue, 25 Feb 2003 03:59:28 +0000 (+0000) Subject: oups, first wrapper ;) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53343fedc06fc1c837615e53cc2b310b8785e6c6;p=my-code%2Fdfb-photoshow.git oups, first wrapper ;) --- diff --git a/showdir b/showdir new file mode 100755 index 0000000..2e7d71b --- /dev/null +++ b/showdir @@ -0,0 +1,26 @@ +#!/bin/sh + +# author: hackbard +# searches for pictures to present + +usage() { + echo "$0 usage: $0 " + echo +} + +if [ "$#" <= "2" ]; then + usage + exit 0 +fi + +dir="$2" + +files=`find $dir -name '*.jpg'` +files="$files +`find $dir -name '*.JPG'`" + +./dfb-photoshow $1 $files + +echo +echo done +