dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 62418185b148dbd475728358a137d24bd392f4b0
parent e4a64f6527936e85541f52a34384d15f70ea9872
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon, 30 Jul 2018 01:20:04 -0400

compile script compiles from directory of file

Diffstat:
M.scripts/compiler | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/.scripts/compiler b/.scripts/compiler @@ -9,9 +9,12 @@ # config.h files: (For suckless utils) recompiles and installs program. # all others: run `sent` to show a presentation +oridir=$(pwd) + file=$(readlink -f "$1") dir=$(dirname "$file") base="${file%.*}" +cd $dir textype() { \ command="pdflatex" @@ -30,3 +33,4 @@ case "$file" in *config.h) make && sudo make install ;; *) sent "$file" 2>/dev/null & ;; esac +cd $oridir