projects
/
my-code
/
dfb-photoshow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2e7d71bf077c3554bda45e2e2190246d0fe62826
[my-code/dfb-photoshow.git]
/
showdir
1
#!/bin/sh
2
3
# author: hackbard
4
# searches for pictures to present
5
6
usage() {
7
echo "$0 usage: $0 <sec> <dir>"
8
echo
9
}
10
11
if [ "$#" <= "2" ]; then
12
usage
13
exit 0
14
fi
15
16
dir="$2"
17
18
files=`find $dir -name '*.jpg'`
19
files="$files
20
`find $dir -name '*.JPG'`"
21
22
./dfb-photoshow $1 $files
23
24
echo
25
echo done
26