coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: update tests/init.sh from gnulib


From: Bernhard Voelker
Subject: [PATCH] maint: update tests/init.sh from gnulib
Date: Mon, 20 Dec 2021 23:30:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

Patch attached.

Additionally, it may be worth adding a syntax-check rule to ensure the files
physically copied from gnulib stay in sync.
WDYT?

Have a nice day,
Berny

diff --git a/cfg.mk b/cfg.mk
index 6d6c37dc2..f06223f2e 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -138,6 +138,14 @@ sc_ensure_gl_diffs_apply_cleanly:
                 'make refresh-gnulib-patches' >&2; exit 1; }           \
        done

+# Ensure all physically copied files from gnulib are in sync
+sc_ensure_copied_gnulib_files_are_in_sync:
+       @diff -u $(srcdir)/gnulib/doc/COPYINGv3 $(srcdir)/COPYING \
+         && diff -u $(srcdir)/gnulib/build-aux/bootstrap $(srcdir)/bootstrap \
+         && diff -u $(srcdir)/gnulib/tests/init.sh $(srcdir)/tests/init.sh \
+         || { echo '$(ME): please update copied files from gnulib' 1>&2; \
+              exit 1; }\
+
 # Avoid :>file which doesn't propagate errors
 sc_prohibit_colon_redirection:
        @cd $(srcdir)/tests && GIT_PAGER= git grep -En ': *>.*\|\|'     \

Attachment: 0001-maint-update-tests-init.sh-from-gnulib.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]