mirror of
https://github.com/reactos/project-tools-archive.git
synced 2024-12-04 01:21:11 +00:00
213eb557cc
- Rename "svn" to "svn-tools" to have a more meaningful checkout directory name - Add svn:executable to the relevant files svn path=/trunk/; revision=2196
24 lines
580 B
Bash
Executable File
24 lines
580 B
Bash
Executable File
#!/bin/bash
|
|
REPOS="$1"
|
|
TXN="$2"
|
|
SVNLOOK="$3"
|
|
|
|
while read changeline;
|
|
do
|
|
file=${changeline:4}
|
|
if [ "text/plain;charset=UTF-16" == "`$SVNLOOK propget -t \"$TXN\" \"$REPOS\" svn:mime-type \"$file\" 2> /dev/null`" ]
|
|
then
|
|
if [ "${changeline:0:1}" == "D" ]; then
|
|
continue
|
|
fi
|
|
contents=`$SVNLOOK cat -t "$TXN" "$REPOS" "$file"`
|
|
if [ "`echo ${contents:0:2}`" != $'\xff\xfe' ]
|
|
then
|
|
echo "$file has to be encoded in UTF16LE." >&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
done < <($SVNLOOK changed -t "$TXN" "$REPOS")
|
|
|
|
|