compiler dir-independent, sh>bash
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# This script will compile or run another finishing operation on a document. I
|
# This script will compile or run another finishing operation on a document. I
|
||||||
# have this script run via vim.
|
# have this script run via vim.
|
||||||
@@ -14,7 +14,7 @@ oridir=$(pwd)
|
|||||||
file=$(readlink -f "$1")
|
file=$(readlink -f "$1")
|
||||||
dir=$(dirname "$file")
|
dir=$(dirname "$file")
|
||||||
base="${file%.*}"
|
base="${file%.*}"
|
||||||
cd $dir
|
cd "$dir" || exit
|
||||||
|
|
||||||
textype() { \
|
textype() { \
|
||||||
command="pdflatex"
|
command="pdflatex"
|
||||||
@@ -33,4 +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
|
cd "$oridir" || exit
|
||||||
|
|||||||
Reference in New Issue
Block a user