]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: Don't remove comments referencing @NMD@.
authorCollin Funk <collin.funk1@gmail.com>
Fri, 8 Mar 2024 10:28:11 +0000 (02:28 -0800)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Mar 2024 10:45:13 +0000 (11:45 +0100)
* gnulib-tool (func_emit_lib_Makefile_am): Replace lines that start with
@NMD@ or @!NMD@ instead of lines that contain them.

ChangeLog
gnulib-tool

index 8ec375982f484eb681e70200dc78636b06a5626f..14e3f1e2f32959471263cbd54de1c37012340633 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-08  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool: Don't remove comments referencing @NMD@.
+       * gnulib-tool (func_emit_lib_Makefile_am): Replace lines that start with
+       @NMD@ or @!NMD@ instead of lines that contain them.
+
 2024-03-05  Bruno Haible  <bruno@clisp.org>
 
        c-strtod, c-strtold: Make multithread-safe.
index 13e3ff297073d8a909fb4387d98c286f9ef6f803..eaeb06d79903f06fb04bcca5b4f21e64cf893f12 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 2002-2023 Free Software Foundation, Inc.
+# Copyright (C) 2002-2024 Free Software Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -3751,9 +3751,9 @@ func_emit_lib_Makefile_am ()
   # Replace NMD, so as to remove redundant "$(MKDIR_P) '.'" invocations.
   # The logic is similar to how we define gl_source_base_prefix.
   if $automake_subdir; then
-    sed_eliminate_NMD='s/@NMD@//;/@!NMD@/d'
+    sed_eliminate_NMD='s/^@NMD@//;/^@!NMD@/d'
   else
-    sed_eliminate_NMD='/@NMD@/d;s/@!NMD@//'
+    sed_eliminate_NMD='/^@NMD@/d;s/^@!NMD@//'
   fi
   if $for_test; then
     # When creating a package for testing: Attempt to provoke failures,