dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 857abf08b46ab02e79d5225b8656753e567d097c
parent 39a8b93fb40f1ef2c97ac4ac8837fc4dd249bc2e
Author: Chris Noxz <chris@noxz.tech>
Date:   Fri, 25 Oct 2019 21:23:01 +0200

[bin] Load compiler arguments from source files

Diffstat:
Mbin/.bin/compile | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/.bin/compile b/bin/.bin/compile @@ -3,6 +3,8 @@ _FILE=$(readlink -f "$1") _DIR=$(dirname "$_FILE") _BASE="${_FILE%.*}" +_PRFX="---COMPILE:" +_ARGS="$(grep -oP -- "$_PRFX.*$" "$_FILE" | sed -s "s|$_PRFX||")" cd "$_DIR" || return @@ -12,7 +14,7 @@ case "$_FILE" in | tbl -Tpdf \ | eqn -Tpdf \ | pic -Tpdf \ - | groff -k -ms -msv -dpaper=a4 -P-pa4 -P-e -Tpdf \ + | groff -k -ms $_ARGS -dpaper=a4 -P-pa4 -P-e -Tpdf \ | gs \ -q \ -dNOPAUSE \