From c6862f7f703bcff364573e95f180f05ce8e45040 Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 8 Aug 2022 16:21:14 +0300 Subject: add clean to build.sh --- build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.sh b/build.sh index 39849a5..9d242c3 100755 --- a/build.sh +++ b/build.sh @@ -7,6 +7,18 @@ SRCD="src" ODIR="obj" BIN="bin" +function clean { + rm -rf $BIN + rm -rf $ODIR + rm -rf files +} + +if ! { [[ $# -eq 0 ]]; } 2> /dev/null +then + ($1) + exit 0; +fi + mkdir -p $ODIR mkdir -p $BIN -- cgit v1.2.3