Debian Codegraph @

externals/OPTIMADE/tests/makefiles/Makelocal-authors

raw
1 #---*- Makefile -*-------------------------------------------------------
2
3 # Targets related to handling the AUTHORS file
4
5 .PHONY: test_authors
6
7 test_authors: tests/generated/AUTHORS.sorted
8 diff -u AUTHORS tests/generated/AUTHORS.sorted || true
9
10 AUTHORS_TAG=Contributors to the development of the OPTIMADE specification and implementation in alphabetical order:
11
12 tests/generated/AUTHORS.sorted: AUTHORS
13 awk '{print} /${AUTHORS_TAG}/ {exit}' $< > $@
14 cat $< \
15 | awk 'NAMES {print} /${AUTHORS_TAG}/ {NAMES=1}' \
16 | sed 's/Di /Di_/' \
17 | awk '{printf("%s:%s\n",$$NF,$$0)}' \
18 | sort \
19 | awk -F: '{print $$2}' \
20 | sed 's/Di_/Di /' \
21 >> $@
22
23 .PHONY: clean clean_authors
24
25 clean: clean_authors
26
27 clean_authors:
28 rm -f tests/generated/AUTHORS.sorted