From 61206c6ac6fdc3fc884626a5b1076354f8311c33 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 13 Jun 2019 20:17:39 -0400 Subject: [PATCH] Make awk filters more portable --- config/aerc.conf.in | 4 ++-- contrib/hldiff | 1 - contrib/plaintext | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/aerc.conf.in b/config/aerc.conf.in index de1c3ec..b07317f 100644 --- a/config/aerc.conf.in +++ b/config/aerc.conf.in @@ -69,7 +69,7 @@ editor= # 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 # subject which contains "text". Use header,~regex to match against a regex. -subject,~^\[PATCH=@SHAREDIR@/filters/hldiff -text/*=@SHAREDIR@/filters/plaintext +subject,~^\[PATCH=awk -f @SHAREDIR@/filters/hldiff +text/*=awk -f @SHAREDIR@/filters/plaintext #text/html=@SHAREDIR@/filters/html #image/*=catimg -w $(tput cols) - diff --git a/contrib/hldiff b/contrib/hldiff index 5d7c422..b672e21 100755 --- a/contrib/hldiff +++ b/contrib/hldiff @@ -1,4 +1,3 @@ -#!/usr/bin/env -S awk -f # vim: set ft=awk : BEGIN { bright = "\x1B[1m" diff --git a/contrib/plaintext b/contrib/plaintext index b7feb44..71e33f7 100755 --- a/contrib/plaintext +++ b/contrib/plaintext @@ -1,4 +1,3 @@ -#!/usr/bin/env -S awk -f # vim: set ft=awk : BEGIN { dim = "\x1B[2m"