testsuite: make config data sorted using "make sort"

* Makefile (sort): Add dependencies, sort in C locale using "sort -u".
* testsuite/config-guess.data: Make the data sorted.
* testsuite/config-sub.data: Likewise.
This commit is contained in:
Dmitry V. Levin
2020-12-22 08:00:00 +00:00
parent f0f7283240
commit 05734c3b30
3 changed files with 284 additions and 285 deletions

View File

@ -15,8 +15,9 @@ check-sub:
shellcheck:
shellcheck -f gcc config.guess config.sub testsuite/*.sh
sort:
for f in config-guess.data config-sub.data ; do sort testsuite/$$f -o testsuite/$$f; done
.PHONY: sort
sort: testsuite/config-guess.data testsuite/config-sub.data
for f in $^; do LC_ALL=C sort -u $$f -o $$f; done
doc/%.1: % doc/%.x
$(HELP2MAN) --include=doc/$<.x --output=$@ ./$<