]>
git.saurik.com Git - wxWidgets.git/blob - misc/scripts/svn/hooks/pre-commit
5dabb3cea79ce22843599564bfc552774e3e9de3
6 SVNLOOK
=/usr
/bin
/svnlook
9 $SVNLOOK cat "$REPOS" -t "$TXN" $1
12 all_changed_files
=`$SVNLOOK changed "$REPOS" -t "$TXN" | \
16 changed_sources
=`echo $all_changed_files | \
17 egrep "\.(cpp|h|py)$" | \
18 egrep -v "src/(tiff|regex|jpeg|stc/scintilla)"`
24 for f
in $changed_sources; do
25 if svn_cat
$f | fgrep
-q ' '; then
26 echo "Please remove TABs from $f before committing." >&2
31 for f
in $all_changed_files; do
32 if ! svn_cat
$f | iconv -f utf8
-t WCHAR_T
> /dev
/null
; then
33 echo "File $f doesn't use UTF-8, please convert it before committing." >&2