From 1ccebe9b89bb57dd9d25b4ec196b78451e1e1dd3 Mon Sep 17 00:00:00 2001 From: tydeu Date: Sat, 10 Jul 2021 12:36:13 -0400 Subject: [PATCH] chore: improve shell scripts --- clean.sh | 1 + examples/deps/clean.sh | 6 +++--- examples/hello/clean.sh | 2 +- examples/io/clean.sh | 2 +- examples/test.sh | 14 ++++++++++++++ 5 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 clean.sh create mode 100644 examples/test.sh diff --git a/clean.sh b/clean.sh new file mode 100644 index 0000000000..1582321863 --- /dev/null +++ b/clean.sh @@ -0,0 +1 @@ +rm -rf build diff --git a/examples/deps/clean.sh b/examples/deps/clean.sh index d6f800d026..bb08ef93ed 100644 --- a/examples/deps/clean.sh +++ b/examples/deps/clean.sh @@ -1,3 +1,3 @@ -rm -r a/build -rm -r b/build -rm -r foo/build +rm -rf a/build +rm -rf b/build +rm -rf foo/build diff --git a/examples/hello/clean.sh b/examples/hello/clean.sh index 07cbd15340..1582321863 100644 --- a/examples/hello/clean.sh +++ b/examples/hello/clean.sh @@ -1 +1 @@ -rm -r build +rm -rf build diff --git a/examples/io/clean.sh b/examples/io/clean.sh index 07cbd15340..1582321863 100644 --- a/examples/io/clean.sh +++ b/examples/io/clean.sh @@ -1 +1 @@ -rm -r build +rm -rf build diff --git a/examples/test.sh b/examples/test.sh new file mode 100644 index 0000000000..b24edadb15 --- /dev/null +++ b/examples/test.sh @@ -0,0 +1,14 @@ +echo 'testing hello' +cd hello +./test.sh +cd .. + +echo 'testing io' +cd io +./test.sh +cd .. + +echo 'testing deps' +cd deps +./test.sh +cd ..