[GRASS-SVN] r69324 - grass-addons/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 31 13:46:23 PDT 2016
Author: neteler
Date: 2016-08-31 13:46:23 -0700 (Wed, 31 Aug 2016)
New Revision: 69324
Modified:
grass-addons/tools/module_svn_propset.sh
Log:
module_svn_propset.sh: fail less on SVG mime type; yet it complains
Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh 2016-08-31 14:10:35 UTC (rev 69323)
+++ grass-addons/tools/module_svn_propset.sh 2016-08-31 20:46:23 UTC (rev 69324)
@@ -221,6 +221,12 @@
unset_exe "$1"
}
+apply_svg()
+{
+ set_mime_type "$1" "image/svg+xml"
+ set_native_eol "$1"
+ unset_exe "$1"
+}
########
@@ -278,7 +284,7 @@
pdf)
apply_pdf "$FILE"
;;
- png | jpg | jpeg | gif | bmp | svg | xpm | xcf | ico)
+ png | jpg | jpeg | gif | bmp | xpm | xcf | ico)
if [ "$FILE_SUFFIX" = "jpg" ] ; then
FILE_SUFFIX="jpeg"
elif [ "$FILE_SUFFIX" = "svg" ] ; then
@@ -302,6 +308,9 @@
sql)
apply_Sql_code "$FILE"
;;
+ svg)
+ apply_svg "$FILE"
+ ;;
*)
if [ "`basename $FILE`" = "Makefile" ] ; then
apply_makefile "$FILE"
More information about the grass-commit
mailing list