[GRASS-SVN] r44536 - grass-addons/tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 3 13:40:34 EST 2010
Author: neteler
Date: 2010-12-03 10:40:34 -0800 (Fri, 03 Dec 2010)
New Revision: 44536
Modified:
grass-addons/tools/module_svn_propset.sh
Log:
added support for svn:ignore
Modified: grass-addons/tools/module_svn_propset.sh
===================================================================
--- grass-addons/tools/module_svn_propset.sh 2010-12-03 18:40:14 UTC (rev 44535)
+++ grass-addons/tools/module_svn_propset.sh 2010-12-03 18:40:34 UTC (rev 44536)
@@ -153,11 +153,20 @@
unset_exe "$1"
}
+apply_OBJ_code()
+{
+ OBJTMP=$$
+ echo "*.tmp.html" > ignore_$OBJTMP.txt
+ echo "*OBJ*" >> ignore_$OBJTMP.txt
+ svn propset -F ignore_$OBJTMP.txt svn:ignore .
+ rm -f ignore_$OBJTMP.txt
+}
+
########
-for FILE in $* ; do
+for FILE in `ls` ; do
#echo "Processing <$FILE> ..."
if [ ! -e "$FILE" ] ; then
@@ -165,6 +174,13 @@
continue
fi
+ if test -d "$FILE" ; then
+ DIRPREF=`echo "$FILE" | cut -d'.' -f1`
+ if [ "$DIRPREF" = "OBJ" ] ; then
+ apply_OBJ_code "$FILE"
+ fi
+ fi
+
FILE_SUFFIX=`echo "$FILE" | sed -e 's/^.*\.//'`
case "$FILE_SUFFIX" in
c)
@@ -213,7 +229,9 @@
elif [ `file "$FILE" | grep -c "shell script"` -eq 1 ] ; then
apply_shell_script "$FILE"
else
- echo "WARNING: unknown file type <$FILE>"
+ if test ! -d "$FILE" ; then
+ echo "WARNING: unknown file type <$FILE>"
+ fi
fi
;;
esac
More information about the grass-commit
mailing list