annotate plugins/symlink/geeqie-symlink @ 1577:240cf36c9a44

Fix up po/Makefile to rebuild geeqie.pot when POTFILES.in was modified. Without this change, new translatable strings in recently added files were not available for translation in various .po files after a make update-po. Makefile.in.in.patch was modified to include this fix plus some minor cleanups.
author zas_
date Tue, 28 Apr 2009 21:37:27 +0000
parents 3840882253fe
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1556
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
1 #!/bin/sh
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
2
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
3 # This is a helper script that symlinks grouped files
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
4 # it uses geeqie remote connection to get details about grouped files
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
5
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
6
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
7 # iterate over files on commandline
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
8 for file in "$@" ; do
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
9 # we got only one file for each group, typically the main one
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
10 # get the sidecars:
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
11 geeqie -r --get-sidecars:"$file" |while read sidecar ; do
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
12 # the main file is included in the sidecar file list, no special handling is required
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
13 # get destination path for each sidecar file:
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
14 geeqie -r --get-destination:"$sidecar" | if read destination ; then
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
15 ln -s "$sidecar" "$destination"
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
16 fi
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
17 done
3840882253fe added remote interface for exporting additional info (sidecars,
nadvornik
parents:
diff changeset
18 done