You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

8 lines
182 B

#!/bin/bash
case "$1" in
*.asm) nasm -f elf64 "$1" && ld "${1%.*}".o -o "${1%.*}"; rm "${1%.*}".o ;;
*.c) gcc "$1" -o "${1%.*}" ;;
*.go) go build "$1" ;;
Makefile) make ;;
esac