]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Apply spelling fixes discovered by Codespell
authorPaul Smith <psmith@gnu.org>
Sat, 31 Dec 2022 18:21:09 +0000 (13:21 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 31 Dec 2022 18:21:09 +0000 (13:21 -0500)
* maintMakefile: Apply spelling fixes.
* src/file.c: Ditto.
* src/misc.c: Ditto.
* src/remake.c: Ditto.
* src/vmsjobs.c: Ditto.
* src/w32/pathstuff.c: Ditto.
* tests/test_driver.pl: Ditto.
* tests/run_make_tests.com: Ditto
* tests/scripts/features/implicit_search: Ditto
* tests/scripts/features/output-sync: Ditto
* tests/scripts/features/patternrules: Ditto
* tests/scripts/features/se_explicit: Ditto
* tests/scripts/features/statipattrules: Ditto
* tests/scripts/functions/foreach: Ditto
* tests/scripts/variables/MAKEFLAGS: Ditto

15 files changed:
maintMakefile
src/file.c
src/misc.c
src/remake.c
src/vmsjobs.c
src/w32/pathstuff.c
tests/run_make_tests.com
tests/scripts/features/implicit_search
tests/scripts/features/output-sync
tests/scripts/features/patternrules
tests/scripts/features/se_explicit
tests/scripts/features/statipattrules
tests/scripts/functions/foreach
tests/scripts/variables/MAKEFLAGS
tests/test_driver.pl

index b9f822ad8a39df5d27277aa38be4862662506b62..869bfdb0954efac4f5581ef6411c31e6a29d8e2d 100644 (file)
@@ -531,7 +531,7 @@ $(UPLOADS): $(DIST_ARCHIVES) $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE)
        $(FTPPUT) "$(gnu-upload-host)" "$(gnu-upload-dir)/$(@:upload-%=%)" $^
 
 
-# Rebuild Makefile.in if this file is modifed.
+# Rebuild Makefile.in if this file is modified.
 Makefile.in: maintMakefile
 
 # Copyright (C) 1997-2022 Free Software Foundation, Inc.
index f2ca3c0ecc50184f822808e2b30355a2372faf50..ea28c33a2a045f565a425816ecd1b5e5f187d3da 100644 (file)
@@ -807,7 +807,7 @@ snap_deps (void)
     else
       no_intermediates = 1;
 
-  /* The same file connot be both .INTERMEDIATE and .NOTINTERMEDIATE.
+  /* The same file cannot be both .INTERMEDIATE and .NOTINTERMEDIATE.
      However, it is possible for a file to be .INTERMEDIATE and also match a
      .NOTINTERMEDIATE pattern.  In that case, the intermediate file has
      priority over the notintermediate pattern.  This priority is enforced by
index 00dce749d353576edb87eb3c53995dfd527e4fe0..d51f94b3f289ad9cedc5698a27433d225f8af0fa 100644 (file)
@@ -683,7 +683,7 @@ get_tmpfd (char **name)
     *name = NULL;
   else
     {
-      /* If there's an os-specific way to get an anoymous temp file use it.  */
+      /* If there's an os-specific way to get an anonymous temp file use it.  */
       fd = os_anontmp ();
       if (fd >= 0)
         return fd;
index 7ba606cb65ae277ca8636d3825a001280d4d891d..cac8e7e8f719ae720d574c3743af8e7db55ca020 100644 (file)
@@ -38,7 +38,7 @@ this program.  If not, see <https://www.gnu.org/licenses/>.  */
 #include <io.h>
 #include <sys/stat.h>
 #if defined(_MSC_VER) && _MSC_VER > 1200
-/* VC7 or later supprots _stat64 to access 64-bit file size. */
+/* VC7 or later supports _stat64 to access 64-bit file size. */
 #define STAT _stat64
 #else
 #define STAT stat
index 66381b8f7cae9f627868ea81b76e4c0167e66804..0a42066947a0e1ce99f2754fe8b6a0e40fa7641d 100644 (file)
@@ -1233,7 +1233,7 @@ child_execute_job (struct childbase *child, int good_stdin UNUSED, char *argv)
 
      Create a *.com file if either the command is too long for
      lib$spawn, or if a redirect appending to a file is desired, or
-     symbol substitition.
+     symbol substitution.
   */
 
   if (vms_always_use_cmd_file || token.use_cmd_file)
index 38dbc2a3e3735407f2bd5a299299ac70ef242194..b0c5c4bd1575f07074c9ef11b0cfd648a9bfd1e4 100644 (file)
@@ -220,7 +220,7 @@ convert_path_to_nutc(char *path)
 #endif
 
             pathp += strlen(pathp);
-            *pathp++ = ':';     /* use Unix style path separtor for new path */
+            *pathp++ = ':';     /* use Unix style path separator for new path */
             *pathp   = '\0'; /* make sure we are null terminaed */
 
             /* restore path separator */
index 89129172abed95c92bd57c3d5ab87ee75021459f..c9195130a7430f1bae1d6668f2201252e446a3ea 100755 (executable)
@@ -21,7 +21,7 @@ $! You should have received a copy of the GNU General Public License along with
 $! this program.  If not, see <https://www.gnu.org/licenses/>.
 $!
 $!
-$! Allow more than 8 paramters with using commas as a delimiter.
+$! Allow more than 8 parameters with using commas as a delimiter.
 $!
 $ params = "''p1',''p2',''p3',''p4',''p5',''p6',''p7',''p8'"
 $!
index 564dc5bb6a48204f495f3835d3c521b61063a903..57782c940092cfc34b9092fa4f434235d15bfaa9 100644 (file)
@@ -251,7 +251,7 @@ all: hello.tsk
 # One of the implicit rules has two prerequisites, hello.c and hello.x
 # hello.c does not qualify as ought to exit.
 # hello.x can be made from hello.z.
-# This test exersizes the break, which prevents making hello.x as an
+# This test exercises the break, which prevents making hello.x as an
 # intermediate from hello.z during compatibility search.
 unlink('hello.f');
 touch('hello.z');
@@ -468,7 +468,7 @@ hello.x: flags+=good
 !, '-r', "true good\nhello.tsk\n");
 
 # Intermediate prerequisite 'hello.x' has a target specific variable, a pattern
-# specfic variable, matches on both rules '%.tsk: %.x' and 'big_%.tsk: %.x'.
+# specific variable, matches on both rules '%.tsk: %.x' and 'big_%.tsk: %.x'.
 run_make_test(q!
 all: hello.tsk big_hello.tsk
 %.tsk: %.x; $(info $@)
index a5884cec9ed721390a0e77e47ee590e772373132..c6790d3be5c92e743e0d90e51e1326b965465f6f 100644 (file)
@@ -368,7 +368,7 @@ unlink($fout);
 # SV 63333. Test that make continues to run without output sync when we
 # cannot create a temporary file.
 # Create a non-writable temporary directory.
-# Run the test twice, because run_make_test cannot match a regex againt a
+# Run the test twice, because run_make_test cannot match a regex against a
 # multiline input.
 my $tdir = 'test_tmp_dir';
 mkdir($tdir, 0500);
index 0b35408d78081c6d08a73aa2293bd2f02dc2a5f8..9b0113a7d7849dadbbb1e0ef5f381e4e79133745 100644 (file)
@@ -596,7 +596,7 @@ for my $r (@dir) { # The directory of the target in the rule definition.
 my $dollar = $se ? '$' : '';
 
 # The prerequisite should only have directory if the prerequisite of 'all' has
-# it and if the prequisite pattern in the rule definition does not have it.
+# it and if the prerequisite pattern in the rule definition does not have it.
 # That is combination 2.
 my $pdir = $d && !$r ? $d : '';
 
index d1247d40af009de02777713d562209642a77e16d..70fc65f88f59724e9d695662a26f8cf15bead520 100644 (file)
@@ -320,7 +320,7 @@ hello.tsk from hello.o
 #MAKE#: 'hello.tsk' is up to date.\n");
 
 # sv 62706.
-# Multipe rules per target.
+# Multiple rules per target.
 run_make_test(q!
 .SECONDEXPANSION:
 
index e4e118ef64e15876240e4b797aaa54404ae2bc07..e3b00acb099ee49dfdbf6962403efcd0d3c57eae 100644 (file)
@@ -182,7 +182,7 @@ for my $r (@dir) { # The directory of the prerequisite in the rule definition.
 my $dollar = $se ? '$' : '';
 
 # The prerequisite should only have directory if the prerequisite of 'all' has
-# it and if the prequisite pattern in the rule definition does not have it.
+# it and if the prerequisite pattern in the rule definition does not have it.
 # That is combination 2.
 my $pdir = $d && !$r ? $d : '';
 
@@ -239,7 +239,7 @@ ${d}bye.x: $r%.x: $dollar\$(wordlist 1, 99, $dollar\$(wordlist 1, 99, %.1 %.2))
 
 # Multiple funcs, each has multiple words, each word has multiple %, sole %,
 # various corner cases.
-# Make should substitude the first % and only the first % in each word with the
+# Make should substitute the first % and only the first % in each word with the
 # stem.
 $prereqs = "${pdir}bye1%2% ${pdir}bye 3${pdir}bye4%5 6${pdir}bye ${pdir}bye7%8 ${pdir}bye9 ${pdir}bye10% 11${pdir}bye12 13";
 run_make_test("
index 6a06109a582b2217336028c14b59a70799f69394..27dae15abf8cdba4c518d10b806bd9f73d69f8fc 100644 (file)
@@ -5,7 +5,7 @@ $description = "Test the foreach function.";
 
 $details = "This is a test of the foreach function in gnu make.
 This function starts with a space separated list of
-names and a variable. Each name in the list is subsituted
+names and a variable. Each name in the list is substituted
 into the variable and the given text evaluated. The general
 form of the command is $(foreach var,\$list,\$text). Several
 types of foreach loops are tested\n";
index 0d0e896fabd65217c877f56fa98f121d001db0e3..523ec8c3d787f933cf623675699f32ba4eb368c4 100644 (file)
@@ -81,7 +81,7 @@ all:; \$(info makeflags='\$(MAKEFLAGS)')
 }
 }
 
-# Strawberry Perl's exec()--or someting!--appears to replace all /tmp with the
+# Strawberry Perl's exec()--or something!--appears to replace all /tmp with the
 # user's %TEMP% value so we can't use that for -I testing.  Make a directory.
 
 mkdir('localtmp', 0777);
@@ -344,7 +344,7 @@ create_file('bye/makefile',
 all:; $(info $(hello))');
 
 # sv 63347.
-# Test that a cli definition takes precendence over a definition set in
+# Test that a cli definition takes precedence over a definition set in
 # submake.
 run_make_test(q!
 v:=$(shell $(MAKE) -C bye --no-print-directory)
index 26b599984124e07b27ad6f898b28a425070d7864..e5665bddba95319241605869c50ad8f18d54d308 100644 (file)
@@ -836,7 +836,7 @@ sub compare_answer_vms
   return 1 if ($log eq $kgo);
 
   # VMS wants target device to exist or generates an error,
-  # Some test tagets look like VMS devices and trip this.
+  # Some test targets look like VMS devices and trip this.
   $log =~ s/^.+\: no such device or address.*$//gim;
   $log =~ s/\n\n/\n/gm;
   $log =~ s/^\n+//gm;