2008-07-11 15:07:13 +00:00
|
|
|
#!/bin/sh
|
2010-10-12 02:18:11 +00:00
|
|
|
|
2008-07-11 15:07:13 +00:00
|
|
|
# This script adds common svn properties to files
|
2010-10-12 02:18:11 +00:00
|
|
|
|
2008-07-11 15:07:13 +00:00
|
|
|
if [ $# -eq 0 ]; then
|
|
|
|
echo "Usage: $0 [FILE]..."
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-10-12 02:18:11 +00:00
|
|
|
|
2008-07-11 15:07:13 +00:00
|
|
|
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
|