[Goodies-commits] r2324 - in thunar-thumbnailers/trunk: . fig-thumbnailer
Erlend Davidson
erland at xfce.org
Tue Jan 9 18:01:08 CET 2007
Author: erland
Date: 2007-01-09 17:01:08 +0000 (Tue, 09 Jan 2007)
New Revision: 2324
Added:
thunar-thumbnailers/trunk/fig-thumbnailer/
thunar-thumbnailers/trunk/fig-thumbnailer/Makefile.am
thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer
thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer.desktop.in
Modified:
thunar-thumbnailers/trunk/ChangeLog
thunar-thumbnailers/trunk/Makefile.am
thunar-thumbnailers/trunk/configure.in.in
Log:
Add .fig xfig thumbnailer.
Modified: thunar-thumbnailers/trunk/ChangeLog
===================================================================
--- thunar-thumbnailers/trunk/ChangeLog 2007-01-09 00:07:48 UTC (rev 2323)
+++ thunar-thumbnailers/trunk/ChangeLog 2007-01-09 17:01:08 UTC (rev 2324)
@@ -1,3 +1,7 @@
+2007-01-09 Erlend Davidson <E.R.M.Davidson at sms.ed.ac.uk>
+
+ * Added a .fig (xfig) image thumbnailer (fig-thumbnailer/)
+
2007-01-08 Erlend Davidson <E.R.M.Davidson at sms.ed.ac.uk>
* Added a raw image thumbnailer (raw-thumbnailer/) [Jens Luedicke]
@@ -6,7 +10,6 @@
* Added check for ImageMagick in configure.in.in
* Added --enable-raw and --enable-tex options to configure, with conditional checking of dependencies and install
-
2007-01-06 Erlend Davidson <E.R.M.Davidson at sms.ed.ac.uk>
* Added a postscript thumbnailer (ps-thumbnailer/)
Modified: thunar-thumbnailers/trunk/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/Makefile.am 2007-01-09 00:07:48 UTC (rev 2323)
+++ thunar-thumbnailers/trunk/Makefile.am 2007-01-09 17:01:08 UTC (rev 2324)
@@ -4,7 +4,8 @@
eps-thumbnailer \
tex-thumbnailer \
ps-thumbnailer \
- raw-thumbnailer
+ raw-thumbnailer \
+ fig-thumbnailer
distclean-local:
rm -rf *.spec *.cache *~
Modified: thunar-thumbnailers/trunk/configure.in.in
===================================================================
--- thunar-thumbnailers/trunk/configure.in.in 2007-01-09 00:07:48 UTC (rev 2323)
+++ thunar-thumbnailers/trunk/configure.in.in 2007-01-09 17:01:08 UTC (rev 2324)
@@ -76,4 +76,5 @@
tex-thumbnailer/Makefile
ps-thumbnailer/Makefile
raw-thumbnailer/Makefile
+fig-thumbnailer/Makefile
])
Added: thunar-thumbnailers/trunk/fig-thumbnailer/Makefile.am
===================================================================
--- thunar-thumbnailers/trunk/fig-thumbnailer/Makefile.am (rev 0)
+++ thunar-thumbnailers/trunk/fig-thumbnailer/Makefile.am 2007-01-09 17:01:08 UTC (rev 2324)
@@ -0,0 +1,20 @@
+# $Id: Makefile.am 2296 2007-01-03 11:30:08Z benny $
+
+libexec_SCRIPTS = \
+ fig-thumbnailer
+
+desktopdir = $(datadir)/thumbnailers
+desktop_in_files = \
+ fig-thumbnailer.desktop.in
+%.desktop: %.desktop.in
+ sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+EXTRA_DIST = \
+ $(desktop_in_files) \
+ $(libexec_SCRIPTS)
+
+DISTCLEANFILES = \
+ $(desktop_DATA)
+
+# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
Added: thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer
===================================================================
--- thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer (rev 0)
+++ thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer 2007-01-09 17:01:08 UTC (rev 2324)
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# fig-thumbnailer - thumbnailer script for FIG files.
+#
+# Usage: fig-thumbnailer fig-file png-file size
+#
+
+# command line parameters
+ifile=$1
+ofile=$2
+size=$3
+
+# invoke convert (ImageMagick)
+exec convert "fig:$ifile[0]" -scale "$sizex$size" "png:$ofile"
Property changes on: thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer
___________________________________________________________________
Name: svn:executable
+ *
Added: thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer.desktop.in
===================================================================
--- thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer.desktop.in (rev 0)
+++ thunar-thumbnailers/trunk/fig-thumbnailer/fig-thumbnailer.desktop.in 2007-01-09 17:01:08 UTC (rev 2324)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=X-Thumbnailer
+Name=PS Thumbnailer
+MimeType=image/x-xfig;
+X-Thumbnailer-Exec=@libexecdir@/fig-thumbnailer %i %o %s
+
+# vi:set encoding=UTF-8:
More information about the Goodies-commits
mailing list