[GRASS-SVN] r55153 - grass-addons/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 21 18:36:57 PST 2013
Author: hamish
Date: 2013-02-21 18:36:57 -0800 (Thu, 21 Feb 2013)
New Revision: 55153
Modified:
grass-addons/tools/module_svn_propset.sh
Log:
extra quotes needed after all, use a non-binary mimetype so we can diff batch files
Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh 2013-02-22 02:30:13 UTC (rev 55152)
+++ grass-addons/tools/module_svn_propset.sh 2013-02-22 02:36:57 UTC (rev 55153)
@@ -38,7 +38,7 @@
set_msdos_eol()
{
- if [ `svn propget svn:eol-style "$1"` = "native" ] ; then
+ if [ "`svn propget svn:eol-style "$1"`" = "native" ] ; then
svn propdel svn:eol-style "$1"
fi
if [ `svn proplist "$1" | grep -c 'svn:eol-style'` -eq 0 ] ; then
@@ -50,7 +50,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
@@ -148,7 +148,7 @@
apply_bat_script()
{
# CHECKME: setting as an app/ might stop trac from trying diffs & previews
- set_mime_type "$1" "application/x-msdos-program"
+ set_mime_type "$1" "text/x-bat"
set_msdos_eol "$1"
unset_exe "$1"
}
More information about the grass-commit
mailing list