fix when echo -e isnt supported

This commit is contained in:
Mylloon 2024-08-12 10:33:26 +02:00
parent 40bc9f3068
commit 34bdbf8072
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,6 +1,3 @@
ECHO = echo -e
CAT = cat
HEADER = header.bat HEADER = header.bat
PYTHON = main.py PYTHON = main.py
@ -9,7 +6,9 @@ OUTPUT = na.bat
all: build all: build
build: build:
$(CAT) $(HEADER) > $(OUTPUT) cat $(HEADER) > $(OUTPUT)
$(ECHO) "\n::python_beg" >> $(OUTPUT) echo "" >> $(OUTPUT)
$(CAT) $(PYTHON) >> $(OUTPUT) echo "::python_beg" >> $(OUTPUT)
$(ECHO) "::python_end" >> $(OUTPUT) cat $(PYTHON) >> $(OUTPUT)
echo "" >> $(OUTPUT)
echo "::python_end" >> $(OUTPUT)