diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-08-27 23:45:57 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-08-27 23:45:57 -0500 |
commit | 461074b5c0534cae3473c504f09b937a301e68e6 (patch) | |
tree | c6bb98ddd9f7ae1587572915ed9f3ebf2d932135 /git-hooks | |
parent | add ./g -z to just refresh the hooks and possibly other housekeeping (diff) | |
download | core-461074b5c0534cae3473c504f09b937a301e68e6.tar.gz core-461074b5c0534cae3473c504f09b937a301e68e6.zip |
disable po handling for the core git-hook
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/pre-commit | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index cdf6e44eaf91..2e1ebf8212f2 100755 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -110,30 +110,6 @@ EOM exit( 1 ); } -# check for missing doxygen comments in new files -#my $doxycheck = "../../bin/find-undocumented-classes"; -#if (! -e $doxycheck) { -# # bootstrap repo -# $doxycheck =~ s|../../||; -#} -#open(FILES, "git diff-index --cached --name-only --diff-filter=A $against |") || die "Cannot run git diff-index."; -#while (my $file = <FILES>) { -# chomp($file); -# if ($file =~ /\.hxx$/) { -# system("$doxycheck -q $file | sed 's|".getcwd()."/||;'"); -# } -#} - -# run 'msgcat --nowrap' when committing *.po files -open(FILES, "git diff-index --cached --name-only $against |") || die "Cannot run git diff-index."; -while (my $file = <FILES>) { - chomp($file); - if ($file =~ /\.po$/ && -e $file) { - system("msgcat --no-wrap $file > $file.KQnBbK6wQE;mv $file.KQnBbK6wQE $file;"); - system("git add $file"); - } -} - # fix whitespace in code check_whitespaces( $against); |