[GRASS-SVN] r42870 - grass-addons/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 20 13:42:15 EDT 2010


Author: hamish
Date: 2010-07-20 17:42:15 +0000 (Tue, 20 Jul 2010)
New Revision: 42870

Modified:
   grass-addons/tools/module_svn_propset.sh
Log:
+svg

Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh	2010-07-20 17:26:18 UTC (rev 42869)
+++ grass-addons/tools/module_svn_propset.sh	2010-07-20 17:42:15 UTC (rev 42870)
@@ -38,7 +38,7 @@
 {
    # remove generic default for images
    if [ `echo "$2" | cut -f1 -d/` = "image" ] ; then
-      if [ `svn propget svn:mime-type "$1"` = "application/octet-stream" ] ; then
+      if [ "`svn propget svn:mime-type "$1"`" = "application/octet-stream" ] ; then
          svn propdel svn:mime-type "$1"
       fi
    fi
@@ -191,9 +191,11 @@
     pdf)
 	apply_pdf "$FILE"
 	;;
-    png | jpg | jpeg | gif | bmp)
+    png | jpg | jpeg | gif | bmp | svg)
 	if [ "$FILE_SUFFIX" = "jpg" ] ; then
 	    FILE_SUFFIX="jpeg"
+	elif [ "$FILE_SUFFIX" = "svg" ] ; then
+	    FILE_SUFFIX='svg+xml'
 	fi
 	apply_image "$FILE" "$FILE_SUFFIX"
 	;;



More information about the grass-commit mailing list