dotfiles/.bin/sort-wantlib

7 lines
164 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/bin/sh
cat | sed 's/^WANTLIB[[:blank:]+=]*//g' \
| tr ' ' '\n' \
| sort -u \
| fmt -w60 \
| sed 's/^/WANTLIB += /g;1s/^WANTLIB += /WANTLIB = /'