From: Bernhard Voelker Date: Sun, 6 Oct 2024 14:09:26 +0000 (+0200) Subject: maint: adjust check-ls-dircolors to recent change in ls.c X-Git-Tag: v9.6~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0911361e79cddc2ffeab043f9ff120c19431384a;p=thirdparty%2Fcoreutils.git maint: adjust check-ls-dircolors to recent change in ls.c '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. --- diff --git a/Makefile.am b/Makefile.am index 3fd5465995..d17353e1c4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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"