mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
compile script compiles from directory of file
This commit is contained in:
parent
e4a64f6527
commit
62418185b1
@ -9,9 +9,12 @@
|
|||||||
# config.h files: (For suckless utils) recompiles and installs program.
|
# config.h files: (For suckless utils) recompiles and installs program.
|
||||||
# all others: run `sent` to show a presentation
|
# all others: run `sent` to show a presentation
|
||||||
|
|
||||||
|
oridir=$(pwd)
|
||||||
|
|
||||||
file=$(readlink -f "$1")
|
file=$(readlink -f "$1")
|
||||||
dir=$(dirname "$file")
|
dir=$(dirname "$file")
|
||||||
base="${file%.*}"
|
base="${file%.*}"
|
||||||
|
cd $dir
|
||||||
|
|
||||||
textype() { \
|
textype() { \
|
||||||
command="pdflatex"
|
command="pdflatex"
|
||||||
@ -30,3 +33,4 @@ case "$file" in
|
|||||||
*config.h) make && sudo make install ;;
|
*config.h) make && sudo make install ;;
|
||||||
*) sent "$file" 2>/dev/null & ;;
|
*) sent "$file" 2>/dev/null & ;;
|
||||||
esac
|
esac
|
||||||
|
cd $oridir
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user