From 562e4ecdce22e0b994a246cbdca8a503c29f87bc Mon Sep 17 00:00:00 2001
From: Malaurie Bernard <mbernard@kinouby>
Date: Thu, 29 Jun 2023 11:59:57 +0200
Subject: [PATCH] refix build script on host

---
 host_gui/make.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/host_gui/make.sh b/host_gui/make.sh
index d6fe435..f698890 100755
--- a/host_gui/make.sh
+++ b/host_gui/make.sh
@@ -4,9 +4,11 @@ firefox=false
 [ -z "$1" ] || firefox=true
 
 pwd=$(pwd)
+parentPath=$(cd ..; pwd)
+parentName=${parentPath##*/}
 cd ${ESP8266ARDUINO}/tests/host
 make FORCE32=0 ssl
-make -j 10 FORCE32=0 USERCFLAGS="-I ${ARDUINOLIB}/emuAsync/replacement" ULIBDIRS=${ARDUINOLIB}/emuAsync:${ARDUINOLIB}/ESPUI:${ARDUINOLIB}/ArduinoJson:${ARDUINOLIB}/arduinoWebSockets:${ARDUINOLIB}/ESPWebDAV:${ARDUINOLIB}/Debounceri:${ARDUINOLIB}/ESPWebDAV ${pwd}/../pousseseringue-arduino
+make -j 10 FORCE32=0 USERCFLAGS="-I ${ARDUINOLIB}/emuAsync/replacement" ULIBDIRS=${ARDUINOLIB}/emuAsync:${ARDUINOLIB}/ESPUI:${ARDUINOLIB}/ArduinoJson:${ARDUINOLIB}/arduinoWebSockets:${ARDUINOLIB}/ESPWebDAV:${ARDUINOLIB}/Debounceri:${ARDUINOLIB}/ESPWebDAV ${parentPath}/${parentName}
 
 $firefox && (
     true '----------------------------------------'
@@ -16,6 +18,6 @@ $firefox && (
     firefox -new-window http://localhost:9080
 ) &
 
-./bin/pousseseringue-arduino/pousseseringue-arduino "$@"
+./bin/${parentName}/${parentName} "$@"
 
 stty sane
-- 
GitLab