diff options
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 |