]> git.saurik.com Git - wxWidgets.git/blobdiff - misc/scripts/svn/hooks/pre-commit
Fix bug in the hook which prevented committing makefiles.
[wxWidgets.git] / misc / scripts / svn / hooks / pre-commit
index 5dabb3cea79ce22843599564bfc552774e3e9de3..5c0e7aea84756b622edf36356dbe40300bed8c00 100755 (executable)
@@ -13,7 +13,12 @@ all_changed_files=`$SVNLOOK changed "$REPOS" -t "$TXN" | \
                     grep "^[AU]" | \
                     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 | \
+                    sed 's/ /\n/g' | \
                     egrep "\.(cpp|h|py)$" | \
                     egrep -v "src/(tiff|regex|jpeg|stc/scintilla)"`