X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa222c38f9b796be07ab4351ffc810a61a8fd705..e55e975804ae9c6ec82a5fbac2c7ea2497757a28:/tools/internal/spell_comments.pl diff --git a/tools/internal/spell_comments.pl b/tools/internal/spell_comments.pl index 5ab59587f4..961254f84c 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,8 +13,9 @@ # 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." +die "Please install iamerican to use that script.\n" unless (-r "/usr/lib/ispell/american.hash"); sub check_content($) { @@ -30,7 +31,7 @@ die "Call this script from its location or from the SimGrid root directory\n" un 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; + unless scalar(@ARGV)>0; my $total = 0; foreach my $file (@ARGV) {