Changed env variables names in the build script

dev
anulax1225 ago%!(EXTRA string=1 year)
parent c74324e7b5
commit d0ee58a3ad
  1. 15
      README.md
  2. 12
      build.sh

@ -1,7 +1,5 @@
# Bakara project # Bakara project
## Resume
## Generate doc ## Generate doc
To generate the documentation using doxygen, <a>install</a> it from there website for your plaform. To generate the documentation using doxygen, <a>install</a> it from there website for your plaform.
Then write commands : 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 : 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 | | Name | Value | Description |
| ----------- | ----------- | | ----------- | ----------- | ----------- |
| autoexec | 0/1 | | exec | 0/1 | Lauch app |
| clearbin | 0/1 | | clear | 0/1 | Remove bin |
Then write commands : Then write commands :
```bash ```bash
@ -45,9 +43,6 @@ Then write commands :
git clone https://github.com/anulax/bakara git clone https://github.com/anulax/bakara
git submodule init git submodule init
git submodule update git submodule update
(export clearbin=1 autoexec=1) (export clear=1 autoexec=1)
./build.sh config=release ./build.sh config=release
``` ```
## Getting started
(to do)

@ -3,14 +3,14 @@ echo ==================
echo [BUILDING PROJECT] echo [BUILDING PROJECT]
echo ================== echo ==================
if [ -z ${clearbin} ]; then if [ -z ${clear} ]; then
clearbin=0 clear=0
fi fi
if [ -z ${autoexec} ]; then if [ -z ${exec} ]; then
autoexec=0 exec=0
fi fi
if [ 1 -eq ${clearbin} ]; then if [ 1 -eq ${clear} ]; then
echo Clearing bin/bin-int dirs echo Clearing bin/bin-int dirs
rm -rf bin bin-int rm -rf bin bin-int
else else
@ -25,7 +25,7 @@ if [ $? -eq 0 ]; then
echo [FINISHED BUILD] echo [FINISHED BUILD]
echo ================ echo ================
if [ 1 -eq ${autoexec} ]; then if [ 1 -eq ${exec} ]; then
config=$1 config=$1
if [ -z "$config" ]; then if [ -z "$config" ]; then
config="config=debug" config="config=debug"

Loading…
Cancel
Save