comparison plugins/rotate/geeqie-rotate @ 1749:f549702f7b41

added possibility to use geeqie-rotate as a standalone script
author nadvornik
date Sun, 13 Sep 2009 09:55:21 +0000
parents a15dc91173b4
children
comparison
equal deleted inserted replaced
1748:22c398d44d7a 1749:f549702f7b41
45 return 0 45 return 0
46 ;; 46 ;;
47 esac 47 esac
48 } 48 }
49 49
50 get_sidecars=
51 if [ "x$1" == "x-g" ] ; then
52 get_sidecars=yes
53 shift
54 fi
55
50 # iterate over files on commandline 56 # iterate over files on commandline
51 for file in "$@" ; do 57 for file in "$@" ; do
52 # we got only one file for each group, typically the main one 58 if [ -n "$get_sidecars" ] ; then
53 # get the sidecars: 59 # we got only one file for each group, typically the main one
54 geeqie -r --get-sidecars:"$file" |while read sidecar ; do 60 # get the sidecars:
55 # the main file is included in the sidecar file list, no special handling is required 61 geeqie -r --get-sidecars:"$file" |while read sidecar ; do
56 rotate "$sidecar" 62 # the main file is included in the sidecar file list, no special handling is required
57 done 63 rotate "$sidecar"
64 done
65 else
66 rotate "$file"
67 fi
58 done 68 done
59 69