Fix bug in the hook which prevented committing makefiles.

If both makefiles and any source files were committed, makefiles were
mistakenly added to changed_sources and were flagged as containing TABs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-09-23 16:00:08 +00:00
parent 5c858faa15
commit 95e74456a2

View File

@@ -13,7 +13,12 @@ all_changed_files=`$SVNLOOK changed "$REPOS" -t "$TXN" | \
grep "^[AU]" | \ grep "^[AU]" | \
sed 's/^....//'` sed 's/^....//'`
# notice that breaking all_changed_files into several lines by replacing spaces
# with new lines only works as long as we don't have any files with spaces in
# them -- which is the case for now, but if it ever changes we'd probably need
# to use a shell array for all_changed_files or just rerun svnlook here again
changed_sources=`echo $all_changed_files | \ changed_sources=`echo $all_changed_files | \
sed 's/ /\n/g' | \
egrep "\.(cpp|h|py)$" | \ egrep "\.(cpp|h|py)$" | \
egrep -v "src/(tiff|regex|jpeg|stc/scintilla)"` egrep -v "src/(tiff|regex|jpeg|stc/scintilla)"`