Revision: 1849
http://geeqie.svn.sourceforge.net/geeqie/?rev=1849&view=rev
Author: nadvornik
Date: 2009-09-13 09:55:21 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
added possibility to use geeqie-rotate as a standalone script
Modified Paths:
--------------
trunk/plugins/rotate/geeqie-rotate
trunk/plugins/rotate/rotate.desktop.in
Modified: trunk/plugins/rotate/geeqie-rotate
===================================================================
--- trunk/plugins/rotate/geeqie-rotate 2009-09-12 16:37:05 UTC (rev 1848)
+++ trunk/plugins/rotate/geeqie-rotate 2009-09-13 09:55:21 UTC (rev 1849)
@@ -47,13 +47,23 @@
esac
}
+get_sidecars=
+if [ "x$1" == "x-g" ] ; then
+ get_sidecars=yes
+ shift
+fi
+
# iterate over files on commandline
for file in "$@" ; do
- # we got only one file for each group, typically the main one
- # get the sidecars:
- geeqie -r --get-sidecars:"$file" |while read sidecar ; do
- # the main file is included in the sidecar file list, no special
handling is required
- rotate "$sidecar"
- done
+ if [ -n "$get_sidecars" ] ; then
+ # we got only one file for each group, typically the main one
+ # get the sidecars:
+ geeqie -r --get-sidecars:"$file" |while read sidecar ; do
+ # the main file is included in the sidecar file list, no special
handling is required
+ rotate "$sidecar"
+ done
+ else
+ rotate "$file"
+ fi
done
Modified: trunk/plugins/rotate/rotate.desktop.in
===================================================================
--- trunk/plugins/rotate/rotate.desktop.in 2009-09-12 16:37:05 UTC (rev
1848)
+++ trunk/plugins/rotate/rotate.desktop.in 2009-09-13 09:55:21 UTC (rev
1849)
@@ -4,7 +4,7 @@
_Name=Apply the orientation to image content
# call the helper script
-Exec=geeqie-rotate %f
+Exec=geeqie-rotate -g %f
# Desktop files that are usable only in Geeqie should be marked like this:
Categories=X-Geeqie;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn