]> git.saurik.com Git - wxWidgets.git/blobdiff - misc/scripts/svn/hooks/pre-commit
exclude SWIG generated files from being checked
[wxWidgets.git] / misc / scripts / svn / hooks / pre-commit
index d683f16317bf8081e520d52f6c5c81a808846636..2910940abfa98614bdbfddabd9394b193b1fca27 100755 (executable)
@@ -11,7 +11,6 @@ svnl() {
     $SVNLOOK $cmd "$REPOS" -t "$TXN" $*
 }
 
-set -e
 rc=0
 
 # exclude all third-party files from consideration, we don't want to do any
@@ -19,7 +18,8 @@ rc=0
 all_changed_files=`svnl changed | \
                     grep "^[AU]" | \
                     sed 's/^....//' | \
-                    egrep -v "src/(tiff|regex|jpeg|stc/scintilla)"`
+                    egrep -v "src/(tiff|regex|jpeg|stc/scintilla)" | \
+                   egrep -v "_wrap.cpp"`
 
 # analyze the changed files to find all non-binary and all source files
 for f in $all_changed_files; do
@@ -60,3 +60,4 @@ for f in $changed_text_files; do
 done
 
 exit $rc
+