Mercurial > geeqie
annotate plugins/symlink/geeqie-symlink @ 1711:ce8ec81a9601
Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS. Make each an alias of other to be sure. issue reported by Martin Proetzsch.
author | zas_ |
---|---|
date | Thu, 30 Jul 2009 17:59:20 +0000 |
parents | 3840882253fe |
children |
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 |