diff options
author | EuAndreh <eu@euandre.org> | 2021-07-26 10:30:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-26 10:41:49 -0300 |
commit | 4670d66a180e23dcea533f9c47b618c5ed0043f1 (patch) | |
tree | 576a63f960758ef9c4dd4c7dcc40d5135fad5e27 /aux/80-columns.sh | |
parent | aux/ci/: Point to /srv/http instead of /srv/git (diff) | |
download | git-permalink-4670d66a180e23dcea533f9c47b618c5ed0043f1.tar.gz git-permalink-4670d66a180e23dcea533f9c47b618c5ed0043f1.tar.xz |
src/, tests/: Stick to 80 columns with 8-chars wide tabs
Diffstat (limited to 'aux/80-columns.sh')
-rwxr-xr-x | aux/80-columns.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/aux/80-columns.sh b/aux/80-columns.sh new file mode 100755 index 0000000..02a8e81 --- /dev/null +++ b/aux/80-columns.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -eu + +for f in ${@:-$(cat -)}; do + sed 's/\t/ /g' "$f" | + awk -v FNAME="$f" 'length > 80 { + printf "%s:%s:%s\n", FNAME, NR, $0 + }' +done |