]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: adjust check-ls-dircolors to recent change in ls.c
authorBernhard Voelker <mail@bernhard-voelker.de>
Sun, 6 Oct 2024 14:09:26 +0000 (16:09 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sun, 6 Oct 2024 14:09:26 +0000 (16:09 +0200)
'make distcheck' would fail since commit 75b34c77e43a, because the
comparison by check-ls-dircolors fails.

* Makefile.am (check-ls-dircolors): Adjust sed(1) expression to the
changed data initialization.

Makefile.am

index 3fd546599594be955f36a6992efd218f3649ee7a..d17353e1c48321eb66947a59c28a72a9f081b5f7 100644 (file)
@@ -133,7 +133,8 @@ check-ls-dircolors:
          |sed -n 's/^"\(..\)"/\1/p'|sort -u);                  \
        ls=$$(sed -n '/static.*indicator_name\[/,/};'/\p        \
            $(srcdir)/src/ls.c                                  \
-         |sed -n '/^  *"/p'|tr , '\n'|sed 's/^  *//'           \
+         |sed -n '/^  *{/ { s/{.\([a-z]\).,.\([a-z]\).}/"\1\2"/g; p; }' \
+         |tr , '\n'|sed 's/^  *//'             \
          |sed -n 's/^"\(..\)"/\1/p'|sort -u);                  \
        test "$$dc" = "$$ls"