From d0ee58a3ad47f85e2fd414d6fdacaf6eed335e79 Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Wed, 31 Jan 2024 18:42:08 +0100 Subject: [PATCH] Changed env variables names in the build script --- README.md | 15 +++++---------- build.sh | 12 ++++++------ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 6bf3aec..673c61e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Bakara project -## Resume - ## Generate doc To generate the documentation using doxygen, install it from there website for your plaform. Then write commands : @@ -34,10 +32,10 @@ Or use visual studio 2022 to build your project. --- On linux (if you don't have premake5, install it with your distro's packet manager). You have two env variable to change build proccess : -| Name | Value | -| ----------- | ----------- | -| autoexec | 0/1 | -| clearbin | 0/1 | +| Name | Value | Description | +| ----------- | ----------- | ----------- | +| exec | 0/1 | Lauch app | +| clear | 0/1 | Remove bin | Then write commands : ```bash @@ -45,9 +43,6 @@ Then write commands : git clone https://github.com/anulax/bakara git submodule init git submodule update - (export clearbin=1 autoexec=1) + (export clear=1 autoexec=1) ./build.sh config=release ``` - -## Getting started -(to do) \ No newline at end of file diff --git a/build.sh b/build.sh index 290e100..60fa7cd 100755 --- a/build.sh +++ b/build.sh @@ -3,14 +3,14 @@ echo ================== echo [BUILDING PROJECT] echo ================== -if [ -z ${clearbin} ]; then - clearbin=0 +if [ -z ${clear} ]; then + clear=0 fi -if [ -z ${autoexec} ]; then - autoexec=0 +if [ -z ${exec} ]; then + exec=0 fi -if [ 1 -eq ${clearbin} ]; then +if [ 1 -eq ${clear} ]; then echo Clearing bin/bin-int dirs rm -rf bin bin-int else @@ -25,7 +25,7 @@ if [ $? -eq 0 ]; then echo [FINISHED BUILD] echo ================ - if [ 1 -eq ${autoexec} ]; then + if [ 1 -eq ${exec} ]; then config=$1 if [ -z "$config" ]; then config="config=debug"