Update documentation - increase Doxygen usage
[geeqie.git] / plugins / symlink / geeqie-symlink
1 #!/bin/sh
2
3 ## @file
4 ## @brief This is a helper script that symlinks grouped files
5 ##
6 ## It uses geeqie remote connection to get details about grouped files
7 ##
8
9 # iterate over files on commandline
10 for file in "$@" ; do
11     # we got only one file for each group, typically the main one
12     # get the sidecars:
13     geeqie -r --get-sidecars:"$file" |while read sidecar ; do
14         # the main file is included in the sidecar file list, no special handling is required
15         # get destination path for each sidecar file:
16         geeqie -r --get-destination:"$sidecar" | if read destination ; then
17             ln -s "$sidecar" "$destination"
18         fi
19     done
20 done