dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit bedf7593acc44fe290de2634db43734c1752d858
parent 7fcf7b38a6338e5ddddcfcd9c8241b0394d7a609
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 14 Mar 2020 22:32:10 +0100

Output c program as source file name

Diffstat:
M.local/bin/compile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/compile b/.local/bin/compile @@ -55,7 +55,7 @@ handle_target() { *\.gp) run_compile "gnuplot '$1'" "$1";; *\.c) - run_compile "cc -std=c99 -pedantic -Wall -O2 -g '$1'" "$1";; + run_compile "cc -std=c99 -pedantic -Wall -O2 -g '$1' -o '${1%%.*}'" "$1";; *\.[0-9]) run_compile "refer -PS -e '$1' | groff -mandoc -T pdf > '$(basename "${base}").pdf'" "$1";; *)