diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-08 16:21:14 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-08 16:21:14 +0300 |
commit | c6862f7f703bcff364573e95f180f05ce8e45040 (patch) | |
tree | b5e59ff9622ee229a0a8b74e9fa879505c4545a4 /build.sh | |
parent | 519f6b98188dd25c651ed02453de2c416c93c923 (diff) |
add clean to build.sh
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |