summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-06-18 19:59:19 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-06-18 19:59:19 -0700
commit7e035dccd4bd07e58f7639d1ed4ad6f2d563efda (patch)
tree097bb8da09449582ec0dc05b15896c141d7a8eb4 /sh
parentfe9740317f031ac23272de6467789c9a3e5c65fe (diff)
Remove ccgp
This `cc -Wall $(pkg-config --cflags --libs gsl --libs plplot) -o filename filename.c` works well and I also take notes about old way. ccgp is not very useful now because I'm more familiar with build process and I don't want to link unnecessary libraries when require less libs.
Diffstat (limited to 'sh')
-rwxr-xr-xsh/ccgp7
1 files changed, 0 insertions, 7 deletions
diff --git a/sh/ccgp b/sh/ccgp
deleted file mode 100755
index 2f5754f..0000000
--- a/sh/ccgp
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-# steal codes from https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/compiler
-
-base="${1%.*}"
-# -lm link math library? needed for sqrt(). not sure
-# https://stackoverflow.com/questions/44175151/what-is-the-meaning-of-lm-in-gcc
-cc -Wall -lgsl -lgslcblas -lm -lplplot -o "$base" "$1" && ./"$base"