changeset 1675:5bb036e67d6d

added script for importing GQView and Geeqie-alpha metadata
author nadvornik
date Sun, 28 Jun 2009 08:32:27 +0000
parents 0035002fad26
children d27275bc008a
files configure.in plugins/Makefile.am plugins/import/Makefile.am plugins/import/geeqie-import plugins/import/geeqie-import-gqview.desktop.in po/POTFILES.in
diffstat 6 files changed, 65 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Jun 27 23:12:52 2009 +0000
+++ b/configure.in	Sun Jun 28 08:32:27 2009 +0000
@@ -413,6 +413,7 @@
     plugins/symlink/Makefile
     plugins/rotate/Makefile
     plugins/ufraw/Makefile
+    plugins/import/Makefile
     geeqie.spec
 ])
 
--- a/plugins/Makefile.am	Sat Jun 27 23:12:52 2009 +0000
+++ b/plugins/Makefile.am	Sun Jun 28 08:32:27 2009 +0000
@@ -1,6 +1,6 @@
 #FIXME enable or disable individual plugins from configure
 
-SUBDIRS = rotate symlink ufraw
+SUBDIRS = rotate symlink ufraw import
 qq_desktoptemplatedir = $(pkgdatadir)
 qq_desktoptemplate_DATA = template.desktop
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/import/Makefile.am	Sun Jun 28 08:32:27 2009 +0000
@@ -0,0 +1,9 @@
+dist_pkglib_SCRIPTS = geeqie-import
+
+gq_desktopdir = $(pkgdatadir)/applications
+gq_desktop_in_files = geeqie-import-geeqie.desktop.in geeqie-import-gqview.desktop.in
+gq_desktop_DATA = $(gq_desktop_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
+
+EXTRA_DIST = \
+	$(qq_desktop_DATA)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/import/geeqie-import	Sun Jun 28 08:32:27 2009 +0000
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+case "$1" in
+	gqview) 
+	    srcdir=$HOME/.gqview/metadata
+	    ;;
+	geeqie-1-alpha) 
+	    srcdir=$HOME/.geeqie/metadata
+	    ;;
+	*)
+	    echo Unknown argument $1
+	    exit 1
+	    ;;
+esac
+
+destdir=$HOME/.local/share/geeqie/metadata
+
+if [ ! -d $HOME/.local/share/geeqie ] ; then
+    echo \"$HOME/.local/share/geeqie\" does not exist
+    exit 1
+fi
+
+for ext in .meta .gq.xmp ; do
+    find "$srcdir" -type f -name "*$ext" -print | while read src ; do
+        img="${src#$srcdir}"
+        img="${img%$ext}"
+        dest="$destdir$img$ext"
+        if [ -f "$img" -a ! -f "$dest" ] ; then
+            mkdir -p "${dest%/*}"
+            cp -pr "$src" "$dest"
+            echo Importing $ext metadata for \"$img\"
+        fi
+    done
+done
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/import/geeqie-import-gqview.desktop.in	Sun Jun 28 08:32:27 2009 +0000
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+_Name=Import GQView metadata
+
+# call the helper script
+Exec=geeqie-import gqview
+
+# Desktop files that are usable only in Geeqie should be marked like this:
+Categories=X-Geeqie;
+OnlyShowIn=X-Geeqie;
+
+# Show in menu "File"
+X-Geeqie-Menu-Path=EditMenu/PreferencesMenu
+
+# It can be made verbose
+X-Geeqie-Verbose=true
--- a/po/POTFILES.in	Sat Jun 27 23:12:52 2009 +0000
+++ b/po/POTFILES.in	Sun Jun 28 08:32:27 2009 +0000
@@ -3,6 +3,9 @@
 plugins/symlink/symlink.desktop.in
 plugins/ufraw/geeqie-ufraw-recursive.desktop.in
 plugins/ufraw/geeqie-ufraw.desktop.in
+plugins/ufraw/geeqie-ufraw-id.desktop.in
+plugins/ufraw/geeqie-import-gqview.desktop.in
+plugins/ufraw/geeqie-import-geeqie.desktop.in
 src/advanced_exif.c
 src/bar.c
 src/bar_comment.c