comparison plugins/symlink/geeqie-symlink @ 1556:3840882253fe

added remote interface for exporting additional info (sidecars, destination) to external commands see the symlink command for an example http://sourceforge.net/tracker/?func=detail&aid=2488845&group_id=222125&atid=1054680
author nadvornik
date Mon, 20 Apr 2009 21:34:16 +0000
parents
children
comparison
equal deleted inserted replaced
1555:70f94d61b1aa 1556:3840882253fe
1 #!/bin/sh
2
3 # This is a helper script that symlinks grouped files
4 # it uses geeqie remote connection to get details about grouped files
5
6
7 # iterate over files on commandline
8 for file in "$@" ; do
9 # we got only one file for each group, typically the main one
10 # get the sidecars:
11 geeqie -r --get-sidecars:"$file" |while read sidecar ; do
12 # the main file is included in the sidecar file list, no special handling is required
13 # get destination path for each sidecar file:
14 geeqie -r --get-destination:"$sidecar" | if read destination ; then
15 ln -s "$sidecar" "$destination"
16 fi
17 done
18 done