summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/ccgsl
blob: d38ae5d2d69da6ccacf4828eda2caa1605f0bc5d (plain)
1
2
3
4
5
#!/bin/sh
# steal codes from https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/compiler

base="${1%.*}"
cc "$1" -o "$base" -lgsl -lgslcblas && ./"$base"