From 55fbf010697ca84bd08b4055ec20d3575aa27587 Mon Sep 17 00:00:00 2001 From: bebbo Date: Mon, 25 Feb 2019 20:25:24 +0100 Subject: [PATCH] also create tmp folder if missing --- setup/cmdline.bat | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/setup/cmdline.bat b/setup/cmdline.bat index 3223391..bcbcdfa 100644 --- a/setup/cmdline.bat +++ b/setup/cmdline.bat @@ -1,13 +1,14 @@ -@for /f %%i in ('cd') do @set PREFIX=%%i -@path %path%;%prefix%\bin\ -@copy /y bin\bat2exe.exe bin\make.exe >NUL: -@echo %prefix%\bin\_make.exe >>bin\make.exe -@echo %prefix%\bin\_make.exe SHELL=%prefix%\bin\sh.exe >>bin\make.exe +@echo off +for /f %%i in ('cd') do @set PREFIX=%%i +path %path%;%prefix%\bin\ +if not exist bin\make.exe (copy /y bin\bat2exe.exe bin\make.exe >NUL: & echo %prefix%\bin\_make.exe >>bin\make.exe & echo %prefix%\bin\_make.exe SHELL=%prefix%\bin\sh.exe >>bin\make.exe) +if not exist ../tmp mkdir ../tmp -@echo ******************************************************************************* -@echo * Welcome to amiga-gcc * -@echo ******************************************************************************* -@dir bin\*.exe /w +echo ******************************************************************************* +echo * Welcome to amiga-gcc * +echo ******************************************************************************* +dir bin\*.exe /w +@echo on m68k-amigaos-gcc hello.c -o hello -Os -noixemul