]> hackdaworld.org Git - my-code/dfb-photoshow.git/commitdiff
oups, first wrapper ;)
authorhackbard <hackbard>
Tue, 25 Feb 2003 03:59:28 +0000 (03:59 +0000)
committerhackbard <hackbard>
Tue, 25 Feb 2003 03:59:28 +0000 (03:59 +0000)
showdir [new file with mode: 0755]

diff --git a/showdir b/showdir
new file mode 100755 (executable)
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 <sec> <dir>"
+ 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
+