Make awk filters more portable

This commit is contained in:
Drew DeVault 2019-06-13 20:17:39 -04:00
parent 408a9e7b10
commit 61206c6ac6
3 changed files with 2 additions and 4 deletions

View file

@ -69,7 +69,7 @@ editor=
# You can also match on non-mimetypes, by prefixing with the header to match # You can also match on non-mimetypes, by prefixing with the header to match
# against (non-case-sensitive) and a comma, e.g. subject,text will match a # against (non-case-sensitive) and a comma, e.g. subject,text will match a
# subject which contains "text". Use header,~regex to match against a regex. # subject which contains "text". Use header,~regex to match against a regex.
subject,~^\[PATCH=@SHAREDIR@/filters/hldiff subject,~^\[PATCH=awk -f @SHAREDIR@/filters/hldiff
text/*=@SHAREDIR@/filters/plaintext text/*=awk -f @SHAREDIR@/filters/plaintext
#text/html=@SHAREDIR@/filters/html #text/html=@SHAREDIR@/filters/html
#image/*=catimg -w $(tput cols) - #image/*=catimg -w $(tput cols) -

View file

@ -1,4 +1,3 @@
#!/usr/bin/env -S awk -f
# vim: set ft=awk : # vim: set ft=awk :
BEGIN { BEGIN {
bright = "\x1B[1m" bright = "\x1B[1m"

View file

@ -1,4 +1,3 @@
#!/usr/bin/env -S awk -f
# vim: set ft=awk : # vim: set ft=awk :
BEGIN { BEGIN {
dim = "\x1B[2m" dim = "\x1B[2m"