X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d7c8fb4272390c190ad340cfe6671f1c900d3bc4..ae2703f5cf2c00470b492092bb6188c38466b5b5:/tools/internal/spell_comments.pl diff --git a/tools/internal/spell_comments.pl b/tools/internal/spell_comments.pl index 18855d79f5..7ff91da032 100755 --- a/tools/internal/spell_comments.pl +++ b/tools/internal/spell_comments.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (c) 2013-2015. The SimGrid Team. # All rights reserved. @@ -13,6 +13,7 @@ # Copyright 2003, Dan Kegel. Licensed under GPL. See the file ../COPYING for details. use strict; +use warnings; die "Please install iamerican to use that script." unless (-r "/usr/lib/ispell/american.hash"); @@ -29,7 +30,7 @@ $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'`\n" + ."`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; my $total = 0;