From 75640894c1277a707d75bf99e4dda314f842a7f1 Mon Sep 17 00:00:00 2001 From: fanasina Date: Mon, 23 Oct 2023 13:29:44 +0200 Subject: [PATCH] add compile and run script in example dir --- example/compile.sh | 3 +++ example/run.sh | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 example/compile.sh create mode 100644 example/run.sh diff --git a/example/compile.sh b/example/compile.sh new file mode 100644 index 0000000..8581626 --- /dev/null +++ b/example/compile.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gcc -o x1 eg1.c -I../include_ytest/include/ -L.. -lytest $1 diff --git a/example/run.sh b/example/run.sh new file mode 100644 index 0000000..9e20bef --- /dev/null +++ b/example/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "$#" -le 0 ] ; then + echo "usage : $0