]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: Don't remove comments referencing @NMD@, part 2.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 10 Mar 2024 09:02:30 +0000 (01:02 -0800)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 10:32:39 +0000 (11:32 +0100)
* gnulib-tool (func_emit_tests_Makefile_am): Replace lines that start
with @NMD@ or @!NMD@ instead of lines that contain them.

ChangeLog
gnulib-tool

index e13cac8b11193ce30c36c138da2db8c9143262b9..5f1eec3d1288e2710084dd7791a3f3dc069ffafe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-10  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool: Don't remove comments referencing @NMD@, part 2.
+       * gnulib-tool (func_emit_tests_Makefile_am): Replace lines that start
+       with @NMD@ or @!NMD@ instead of lines that contain them.
+
 2024-03-08  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool: Don't remove comments referencing @NMD@.
index 22635ed7abd9b79aa1f28f025085fa2a240ead62..150898ed05e310fffef54c4a2c8a5b7fdfca822d 100755 (executable)
@@ -4142,7 +4142,7 @@ func_emit_tests_Makefile_am ()
   fi
   # Replace NMD, so as to remove redundant "$(MKDIR_P) '.'" invocations.
   # The logic is similar to how we define gl_source_base_prefix.
-  sed_eliminate_NMD='/@NMD@/d;s/@!NMD@//'
+  sed_eliminate_NMD='/^@NMD@/d;s/^@!NMD@//'
   if $for_test; then
     # When creating a package for testing: Attempt to provoke failures,
     # especially link errors, already during "make" rather than during