[GRASS-SVN] r41678 - grass-addons/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 3 04:27:41 EDT 2010
Author: hamish
Date: 2010-04-03 04:27:40 -0400 (Sat, 03 Apr 2010)
New Revision: 41678
Modified:
grass-addons/tools/module_svn_propset.sh
Log:
replace mime-type=application/octet-stream for images
Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh 2010-04-03 08:23:02 UTC (rev 41677)
+++ grass-addons/tools/module_svn_propset.sh 2010-04-03 08:27:40 UTC (rev 41678)
@@ -34,9 +34,15 @@
fi
}
-# will only set if previously empty
set_mime_type()
{
+ # remove generic default for images
+ if [ `echo "$2" | cut -f1 -d/` = "image" ] ; then
+ if [ `svn propget svn:mime-type "$1"` = "application/octet-stream" ] ; then
+ svn propdel svn:mime-type "$1"
+ fi
+ fi
+
if [ `svn proplist "$1" | grep -c 'svn:mime-type'` -eq 0 ] ; then
svn propset svn:mime-type "$2" "$1"
fi
More information about the grass-commit
mailing list