disable po handling for the core git-hook

This commit is contained in:
Norbert Thiebaud
2011-08-27 23:45:57 -05:00
parent b216943255
commit 461074b5c0

View File

@@ -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);