From 0b6b84bb31f42f3f8b6ed8da2900c052b095787f Mon Sep 17 00:00:00 2001 From: xyz Date: Wed, 3 Nov 2021 21:33:18 -0700 Subject: ccgsl, gcc compiler compile gsl shell script --- home/xyz/.local/bin/ccgsl | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 home/xyz/.local/bin/ccgsl (limited to 'home/xyz/.local/bin') diff --git a/home/xyz/.local/bin/ccgsl b/home/xyz/.local/bin/ccgsl new file mode 100755 index 00000000..d38ae5d2 --- /dev/null +++ b/home/xyz/.local/bin/ccgsl @@ -0,0 +1,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" -- cgit v1.2.3-70-g09d2