Browse Source

master > master: codego - build.sh vereinfacht

master
RD 1 year ago
parent
commit
3de689d6fc
  1. 10
      codego/scripts/build.sh

10
codego/scripts/build.sh

@ -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…
Cancel
Save