mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
Added a script (courtesy of salty-horse) to create/set properties for source files under version control by Subversion. Specifically, the mime-type, eol-style and keywords properties are handled.
svn-id: r33007
This commit is contained in:
parent
8ba56e98cf
commit
c829fd3eaf
20
tools/svnpropset.sh
Executable file
20
tools/svnpropset.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user