Alphabetically ordered compiler script with added sass compiling (#699)
Co-authored-by: Salman Abedin <salmanabedin@zohomail.com>
This commit is contained in:
parent
2668bff317
commit
4bfe095f98
1 changed files with 9 additions and 8 deletions
|
@ -27,11 +27,11 @@ textype() { \
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$ext" in
|
case "$ext" in
|
||||||
ms) preconv "$file" | refer -PS -e | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
|
||||||
mom) preconv "$file" | refer -PS -e | groff -mom -kept -T pdf > "$base".pdf ;;
|
|
||||||
[0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;;
|
[0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;;
|
||||||
[rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;;
|
c) cc "$file" -o "$base" && "$base" ;;
|
||||||
tex) textype "$file" ;;
|
go) go run "$file" ;;
|
||||||
|
h) sudo make install ;;
|
||||||
|
m) octave "$file" ;;
|
||||||
md) if command -v lowdown >/dev/null; then
|
md) if command -v lowdown >/dev/null; then
|
||||||
lowdown -d nointem -e super "$file" -Tms | groff -mpdfmark -ms -kept > "$base".pdf
|
lowdown -d nointem -e super "$file" -Tms | groff -mpdfmark -ms -kept > "$base".pdf
|
||||||
elif command -v groffdown >/dev/null; then
|
elif command -v groffdown >/dev/null; then
|
||||||
|
@ -39,13 +39,14 @@ case "$ext" in
|
||||||
else
|
else
|
||||||
pandoc "$file" --pdf-engine=xelatex -o "$base".pdf
|
pandoc "$file" --pdf-engine=xelatex -o "$base".pdf
|
||||||
fi ; ;;
|
fi ; ;;
|
||||||
h) sudo make install ;;
|
mom) preconv "$file" | refer -PS -e | groff -mom -kept -T pdf > "$base".pdf ;;
|
||||||
c) cc "$file" -o "$base" && "$base" ;;
|
ms) preconv "$file" | refer -PS -e | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
||||||
py) python "$file" ;;
|
py) python "$file" ;;
|
||||||
|
[rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;;
|
||||||
rs) cargo build ;;
|
rs) cargo build ;;
|
||||||
m) octave "$file" ;;
|
sass) sassc -a "$file" "$base.css" ;;
|
||||||
scad) openscad -o "$base".stl "$file" ;;
|
scad) openscad -o "$base".stl "$file" ;;
|
||||||
go) go run "$file" ;;
|
|
||||||
sent) setsid -f sent "$file" 2>/dev/null ;;
|
sent) setsid -f sent "$file" 2>/dev/null ;;
|
||||||
|
tex) textype "$file" ;;
|
||||||
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue