Import of Ekit 0.9h
[old-projects.git] / ekit / MakeEkit.bat
index 312b315..b1018ca 100755 (executable)
@@ -1,61 +1,61 @@
-@set inputmode=mode%1
-@if %inputmode% == modespell goto spellmaker
-@goto basicmaker
-:basicmaker
-  @echo =========================
-  @echo Basic version compilation
-  @echo =========================
-  @set compilemode=basic
-  @set additionalfiles=
-  @echo [] creating core...
-  @copy /Y com\hexidec\ekit\EkitCore_Basic.java com\hexidec\ekit\EkitCore.java
-  @if errorlevel 2 goto failure
-  @goto compilecore
-:spellmaker
-  @echo ==============================
-  @echo Spellcheck version compilation
-  @echo ==============================
-  @set compilemode=spell
-  @set additionalfiles=com\swabunga\spell\engine\*.class com\swabunga\spell\engine\*.properties com\swabunga\spell\engine\dictionary\* com\swabunga\spell\event\*.class com\swabunga\spell\swing\*.class com\swabunga\spell\swing\*.properties
-  @echo [] creating core...
-  @copy /Y com\hexidec\ekit\EkitCore_Spell.java com\hexidec\ekit\EkitCore.java
-  @if errorlevel 2 goto failure
-  @goto compilecore
-:compilecore
-  @echo [] compiling core...
-  @javac -deprecation com\hexidec\ekit\EkitCore.java
-  @if errorlevel 1 goto failure
-  @goto compileapp
-:compileapp
-  @echo [] compiling application...
-  @javac com\hexidec\ekit\Ekit.java
-  @if errorlevel 2 goto failure
-  @goto makejar
-:makejar
-  @echo [] jarring...
-  @jar cmf com\hexidec\ekit\ekit.manifest ekit.jar com\hexidec\ekit\*.class com\hexidec\ekit\action\*.class com\hexidec\ekit\component\*.class com\hexidec\ekit\icons\*.gif com\hexidec\ekit\*.properties com\hexidec\util\Base64Codec.class com\hexidec\util\Translatrix.class %additionalfiles%
-  @if errorlevel 1 goto failure
-  @goto cleanup
-:failure
-  @echo [*] make failed with an error level of %errorlevel%
-  @goto cleanup
-:cleanup
-  @echo [] cleaning up Ekit classes...
-  @del com\hexidec\ekit\*.class
-  @del com\hexidec\ekit\action\*.class
-  @del com\hexidec\ekit\component\*.class
-  @del com\hexidec\util\Base64Codec.class
-  @del com\hexidec\util\Translatrix.class
-  @if %compilemode% == spell goto spellpurge
-  @goto finish
-:spellpurge
-  @echo [] cleaning up spellcheck classes...
-  @del com\swabunga\spell\engine\*.class
-  @del com\swabunga\spell\event\*.class
-  @del com\swabunga\spell\swing\*.class
-  @goto finish
-:finish
-  @set inputmode=
-  @set compilemode=
-  @set additionalfiles=
-  @echo [] finished
+@set inputmode=mode%1\r
+@if %inputmode% == modespell goto spellmaker\r
+@goto basicmaker\r
+:basicmaker\r
+  @echo =========================\r
+  @echo Basic version compilation\r
+  @echo =========================\r
+  @set compilemode=basic\r
+  @set additionalfiles=com\swabunga\spell\event\SpellCheckListener.class\r
+  @goto compilecore\r
+:spellmaker\r
+  @echo ==============================\r
+  @echo Spellcheck version compilation\r
+  @echo ==============================\r
+  @set compilemode=spell\r
+  @set additionalfiles=com\swabunga\spell\engine\*.class com\swabunga\spell\engine\*.properties com\swabunga\spell\engine\dictionary\* com\swabunga\spell\event\*.class com\swabunga\spell\swing\*.class com\swabunga\spell\swing\*.properties\r
+  @goto compilecore\r
+:compilecore\r
+  @echo [] compiling core...\r
+  @javac -deprecation com\hexidec\ekit\EkitCore.java\r
+  @if errorlevel 1 goto failure\r
+  @if %inputmode% == modespell goto compilespellcore\r
+  @goto compileapp\r
+:compilespellcore\r
+  @echo [] compiling spellcheck extended core...\r
+  @javac com\hexidec\ekit\EkitCoreSpell.java\r
+  @if errorlevel 1 goto failure\r
+  @goto compileapp\r
+:compileapp\r
+  @echo [] compiling application...\r
+  @javac com\hexidec\ekit\Ekit.java\r
+  @if errorlevel 2 goto failure\r
+  @goto makejar\r
+:makejar\r
+  @echo [] jarring...\r
+  @jar cmf com\hexidec\ekit\ekit.manifest ekit.jar com\hexidec\ekit\*.class com\hexidec\ekit\action\*.class com\hexidec\ekit\component\*.class com\hexidec\ekit\icons\*.gif com\hexidec\ekit\*.properties com\hexidec\util\Base64Codec.class com\hexidec\util\Translatrix.class %additionalfiles%\r
+  @if errorlevel 1 goto failure\r
+  @goto cleanup\r
+:failure\r
+  @echo [*] make failed with an error level of %errorlevel%\r
+  @goto cleanup\r
+:cleanup\r
+  @echo [] cleaning up Ekit classes...\r
+  @del com\hexidec\ekit\*.class\r
+  @del com\hexidec\ekit\action\*.class\r
+  @del com\hexidec\ekit\component\*.class\r
+  @del com\hexidec\util\Base64Codec.class\r
+  @del com\hexidec\util\Translatrix.class\r
+  @del com\swabunga\spell\event\*.class\r
+  @if %compilemode% == spell goto spellpurge\r
+  @goto finish\r
+:spellpurge\r
+  @echo [] cleaning up spellcheck classes...\r
+  @del com\swabunga\spell\engine\*.class\r
+  @del com\swabunga\spell\swing\*.class\r
+  @goto finish\r
+:finish\r
+  @set inputmode=\r
+  @set compilemode=\r
+  @set additionalfiles=\r
+  @echo [] finished\r