소스 검색

Beautify compile.bat

NonstickAtom785 4 년 전
부모
커밋
8249bbe81a
1개의 변경된 파일36개의 추가작업 그리고 16개의 파일을 삭제
  1. 36 16
      compile.bat

+ 36 - 16
compile.bat

@@ -1,60 +1,80 @@
 @echo off
+
 if exist spasm.exe (
   echo "Starting Compile..."
 ) else (
   echo "Opening readme..."
   start "" https://github.com/Zeda/Grammer2/blob/master/Readme.md
   exit
-)
+         )
 
 cd src
 
 :Grammer
 set /P c=Compile Gramme?(Y/N)
 if /I "%c%" EQU "Y" (
+
 echo "Generating grammer2.5.inc"
 python ..\tools\jt.py jmptable.z80 grammer2.5.inc
 copy grammer2.5.inc ..\docs\grammer2.5.inc
 
 echo "Assembling App"
 ..\spasm.exe grammer.z80 ..\bin\grammer.8xk -I ..\z80float\single
+
 )
+
 if /I "%c%" EQU "N" goto :grampkg
+
 goto :Grammer
 
 :grampkg
+
 set /P c=Compile Default Package?(Y/N)
 if /I "%c%" EQU "Y" (
+
 echo "Assembling Default Package"
 ..\spasm.exe grampkg.z80 ..\bin\grampkg.8xv
+
 )
+
 if /I "%c%" EQU "N" goto :exppkg
+
 goto :grampkg
 
 
 rem Check for an experimental package
+
 if exist experimental\experimental.z80 (
+
 :exppkg
-  set /P c=Compile Experimental Package?(Y/N)
-  if /I "%c%" EQU "Y" (
-     echo "Assembling Experimental Package"
-   ..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
-  )
-  if /I "%c%" EQU "N" goto :proglaunch
-    goto :exppkg
+set /P c=Compile Experimental Package?(Y/N)
+if /I "%c%" EQU "Y" (
+     	echo "Assembling Experimental Package"
+   	..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
+)
+
+if /I "%c%" EQU "N" goto :proglaunch
+
+goto :exppkg
+
 )
 
 rem Check for the program launcher
+
 if exist launch.z80 (
- :proglaunch
-  set /P c=Compile Program Launcher?(Y/N)
-  if /I "%c%" EQU "Y" (
-  echo "Assembling Program Launcher"
-  ..\spasm.exe launch.z80 ..\bin\g250.8xp
- )
- if /I "%c%" EQU "N" goto :exit
- goto :proglaunch
+
+:proglaunch
+set /P c=Compile Program Launcher?(Y/N)
+if /I "%c%" EQU "Y" (
+echo "Assembling Program Launcher"
+..\spasm.exe launch.z80 ..\bin\g250.8xp
+)
+ 
+if /I "%c%" EQU "N" goto :exit
+goto :proglaunch
+
 )
 
 :exit
 cd..
+