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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 14 18:01:34 EDT 2011


Author: martinl
Date: 2011-03-14 15:01:34 -0700 (Mon, 14 Mar 2011)
New Revision: 45664

Modified:
   grass-addons/tools/module_svn_propset.sh
Log:
module_svn_propset.sh: add support for xml files


Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh	2011-03-14 21:58:55 UTC (rev 45663)
+++ grass-addons/tools/module_svn_propset.sh	2011-03-14 22:01:34 UTC (rev 45664)
@@ -84,6 +84,13 @@
    unset_exe "$1"
 }
 
+apply_xml()
+{
+   set_mime_type "$1" text/xml
+   set_native_eol "$1"
+   unset_exe "$1"
+}
+
 apply_text()
 {
    set_keywords "$1"
@@ -211,6 +218,9 @@
     html)
 	apply_html "$FILE"
 	;;
+    xml)
+	apply_xml "$FILE"
+	;;
     sh)
 	apply_shell_script "$FILE"
 	;;



More information about the grass-commit mailing list