This version checks for absence of hard TABs in our source files. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
25 lines
522 B
Bash
Executable File
25 lines
522 B
Bash
Executable File
#!/bin/sh
|
|
|
|
REPOS="$1"
|
|
TXN="$2"
|
|
|
|
SVNLOOK=/usr/bin/svnlook
|
|
|
|
changed_cpp_files=`$SVNLOOK changed "$REPOS" -t "$TXN" | \
|
|
grep "^[AU]" | \
|
|
sed 's/^....//' | \
|
|
egrep "\.(cpp|h|py)$" | \
|
|
egrep -v "src/(tiff|regex|jpeg|stc/scintilla)" `
|
|
|
|
rc=0
|
|
|
|
set -e
|
|
for f in $changed_cpp_files; do
|
|
if $SVNLOOK cat "$REPOS" -t "$TXN" $f | fgrep -q ' '; then
|
|
echo "Please remove TABs from $f before committing." >&2
|
|
rc=1
|
|
fi
|
|
done
|
|
|
|
exit $rc
|