[GRASS-SVN] r38406 - grass-addons/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 14 01:49:27 EDT 2009
Author: hamish
Date: 2009-07-14 01:49:26 -0400 (Tue, 14 Jul 2009)
New Revision: 38406
Modified:
grass-addons/tools/module_svn_propset.sh
Log:
unset exe bit, fix jpeg
Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh 2009-07-14 05:32:22 UTC (rev 38405)
+++ grass-addons/tools/module_svn_propset.sh 2009-07-14 05:49:26 UTC (rev 38406)
@@ -50,6 +50,14 @@
fi
}
+# will only unset if previously set
+unset_exe()
+{
+ if [ `svn proplist "$1" | grep -c 'svn:executable'` -eq 1 ] ; then
+ svn propdel svn:executable "$1"
+ fi
+}
+
# will only set if previously empty
set_keywords()
{
@@ -67,12 +75,14 @@
set_keywords "$1"
set_mime_type "$1" text/html
set_native_eol "$1"
+ unset_exe "$1"
}
apply_makefile()
{
set_mime_type "$1" text/x-makefile
set_native_eol "$1"
+ unset_exe "$1"
}
apply_shell_script()
@@ -93,23 +103,27 @@
{
set_mime_type "$1" text/x-csrc
set_native_eol "$1"
+ unset_exe "$1"
}
apply_C_header()
{
set_mime_type "$1" text/x-chdr
set_native_eol "$1"
+ unset_exe "$1"
}
apply_Cpp_code()
{
set_mime_type "$1" "text/x-c++src"
set_native_eol "$1"
+ unset_exe "$1"
}
apply_image()
{
set_mime_type "$1" "image/$2"
+ unset_exe "$1"
}
@@ -117,6 +131,7 @@
for FILE in $* ; do
+ #echo "Processing <$FILE> ..."
if [ ! -e "$FILE" ] ; then
echo "ERROR: file not found <$FILE>"
@@ -144,8 +159,11 @@
sh)
apply_shell_script "$FILE"
;;
- png | jpeg | gif)
- apply_image "$1" "$FILE_SUFFIX"
+ png | jpg | jpeg | gif)
+ if [ "$FILE_SUFFIX" = "jpg" ] ; then
+ FILE_SUFFIX="jpeg"
+ fi
+ apply_image "$FILE" "$FILE_SUFFIX"
;;
*)
if [ "$FILE" = "Makefile" ] ; then
More information about the grass-commit
mailing list