aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/svnpropset.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/svnpropset.sh b/tools/svnpropset.sh
new file mode 100755
index 0000000000..46acba534e
--- /dev/null
+++ b/tools/svnpropset.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# This script adds common svn properties to files
+
+if [ $# -eq 0 ]; then
+ echo "Usage: $0 [FILE]..."
+ exit 1
+fi
+
+for filename in $@; do
+ if [ -f $filename ]; then
+ svn propset svn:mime-type text/plain $filename
+ svn propset svn:keywords "Date Rev Author URL Id" $filename
+ svn propset svn:eol-style native $filename
+ elif [ -e $filename ]; then
+ echo "$0: error: '$filename' is not a regular file"
+ else
+ echo "$0: error: '$filename' does not exist"
+ fi
+done