X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7da2926d0733ff0683f31aeea176ce71e127264f..121e1dc6ee0462b6f6f1f1570b0f48c61ee4ff9a:/tools/internal/spell_comments.pl diff --git a/tools/internal/spell_comments.pl b/tools/internal/spell_comments.pl index 7ff91da032..6c19744fb9 100755 --- a/tools/internal/spell_comments.pl +++ b/tools/internal/spell_comments.pl @@ -15,7 +15,7 @@ use strict; use warnings; -die "Please install iamerican to use that script." +die "Please install iamerican to use that script.\n" unless (-r "/usr/lib/ispell/american.hash"); sub check_content($) { @@ -30,8 +30,8 @@ $DICTFILE="./spell_dict.txt" unless (-e $DICTFILE); die "Call this script from its location or from the SimGrid root directory\n" unless (-e $DICTFILE); die "Usage: ". ($DICTFILE eq "./spell_dict.txt"? "./":"tools/internal/")."spell_comments.pl " - ."`find ". ($DICTFILE eq "./spell_dict.txt"? "../../":".")." -name '*.[ch]' -o -name '*.hpp' -o -name '*.cpp' |grep -v umpire|grep -v smpi/mpich3-test|grep -v NAS`\n" - unless length(@ARGV)>1; + ."`find ". ($DICTFILE eq "./spell_dict.txt"? "../../":".")." -name '*.[ch]' -o -name '*.hpp' -o -name '*.cpp' |grep -v umpire|grep -v smpi/mpich3-test|grep -v NAS | grep -v src/smpi/colls`\n" + unless scalar(@ARGV)>0; my $total = 0; foreach my $file (@ARGV) {