diff options
| author | Luke Bubar <43391582+lukerb52@users.noreply.github.com> | 2020-10-19 09:09:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-19 09:09:03 -0400 |
| commit | cb5d88c8f3813826dc5bfa2508bd86ace4613f62 (patch) | |
| tree | 1696ffc4da2b0ace80c5040c877ecac362f6a67e /.local/bin/compiler | |
| parent | 3f4ea160b94565f2867c38d8433cf19c4ccb9188 (diff) | |
| download | eibhear-cb5d88c8f3813826dc5bfa2508bd86ace4613f62.tar.gz eibhear-cb5d88c8f3813826dc5bfa2508bd86ace4613f62.tar.zst eibhear-cb5d88c8f3813826dc5bfa2508bd86ace4613f62.zip | |
Add C++ support to compiler script. (#828)
Diffstat (limited to '.local/bin/compiler')
| -rwxr-xr-x | .local/bin/compiler | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler index 1892d5f..c56a25a 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -30,6 +30,7 @@ case "$ext" in [0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;; c) cc "$file" -o "$base" && "$base" ;; go) go run "$file" ;; + cpp) g++ "$file" -o "$base" && "$base" ;; h) sudo make install ;; m) octave "$file" ;; md) if [ -x "$(command -v lowdown)" ]; then |
