+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.
#! /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
# 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,