diff options
| author | Salman Abedin <salman104alvi@gmail.com> | 2020-06-18 23:41:28 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-18 13:41:28 -0400 |
| commit | 4bfe095f98f1f4fc71c34fa27e253eda9dcc4b8f (patch) | |
| tree | d4705b66d9897dd6de2faab00e8db30513207e4a /.local/bin/compiler | |
| parent | 2668bff3172bdb85c312c8edcb257130b4b53746 (diff) | |
| download | eibhear-4bfe095f98f1f4fc71c34fa27e253eda9dcc4b8f.tar.gz eibhear-4bfe095f98f1f4fc71c34fa27e253eda9dcc4b8f.tar.zst eibhear-4bfe095f98f1f4fc71c34fa27e253eda9dcc4b8f.zip | |
Alphabetically ordered compiler script with added sass compiling (#699)
Co-authored-by: Salman Abedin <salmanabedin@zohomail.com>
Diffstat (limited to '.local/bin/compiler')
| -rwxr-xr-x | .local/bin/compiler | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler index 58a809f..213013e 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -27,11 +27,11 @@ textype() { \ } 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 ;; - [rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;; - tex) textype "$file" ;; + c) cc "$file" -o "$base" && "$base" ;; + go) go run "$file" ;; + h) sudo make install ;; + m) octave "$file" ;; md) if command -v lowdown >/dev/null; then lowdown -d nointem -e super "$file" -Tms | groff -mpdfmark -ms -kept > "$base".pdf elif command -v groffdown >/dev/null; then @@ -39,13 +39,14 @@ case "$ext" in else pandoc "$file" --pdf-engine=xelatex -o "$base".pdf fi ; ;; - h) sudo make install ;; - c) cc "$file" -o "$base" && "$base" ;; + mom) preconv "$file" | refer -PS -e | groff -mom -kept -T pdf > "$base".pdf ;; + ms) preconv "$file" | refer -PS -e | groff -me -ms -kept -T pdf > "$base".pdf ;; py) python "$file" ;; + [rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;; rs) cargo build ;; - m) octave "$file" ;; + sass) sassc -a "$file" "$base.css" ;; scad) openscad -o "$base".stl "$file" ;; - go) go run "$file" ;; sent) setsid -f sent "$file" 2>/dev/null ;; + tex) textype "$file" ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; esac |
