master > master: codego - build.sh vereinfacht
This commit is contained in:
parent
6641946bad
commit
3de689d6fc
@ -47,12 +47,10 @@ function precompile_grammars() {
|
||||
}
|
||||
|
||||
function compile_programme() {
|
||||
[ -f "main" ] && rm "main";
|
||||
[ -f "dist/main" ] && rm "dist/main";
|
||||
echo -e "\033[92;1mGO\033[0m kompiliert \033[1mmain.go\033[0m";
|
||||
call_go build "main.go";
|
||||
! [ -f "main" ] && exit 1;
|
||||
! [ -d "dist" ] && mkdir "dist";
|
||||
mv "main" "dist";
|
||||
call_go build -o dist/main "main.go";
|
||||
! [ -f "dist/main" ] && exit 1;
|
||||
}
|
||||
|
||||
function run_programme() {
|
||||
@ -68,6 +66,6 @@ function run_programme() {
|
||||
check_requirements;
|
||||
|
||||
# Code als Programm kompilieren und ausführen:
|
||||
precompile_grammars;
|
||||
# precompile_grammars;
|
||||
compile_programme;
|
||||
run_programme;
|
||||
|
Loading…
x
Reference in New Issue
Block a user