mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 3167a7a2d35173414fa1b333db4908ac140c1c4d
parent 19405f51b440389127909317b4d6766939d00b1d
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Mon,  5 Sep 2016 14:17:11 +0200

mcolor: use awk in shebang

This is reasonably portable, and easy to fix if not.
The current hack breaks on OpenBSD.

Diffstat:
mcolor | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/mcolor b/mcolor @@ -1,9 +1,6 @@ -#!/bin/sh +#!/usr/bin/awk -f # mcolor - colorize rendered mail -# restart as awk script -true + /; exec awk -f "$0"; exit; / {} - function co(n, c) { e = ENVIRON["MCOLOR_" n]; return e ? e : c } function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) } function so(s) { return sprintf("\033[1m%s\033[0m", s) }