| 1 | #! /bin/csh\r |
| 2 | set inputmode=mode$1\r |
| 3 | if $inputmode == modespell goto spellmaker\r |
| 4 | goto basicmaker\r |
| 5 | basicmaker:\r |
| 6 | echo =========================\r |
| 7 | echo Basic version compilation\r |
| 8 | echo =========================\r |
| 9 | set compilemode=basic\r |
| 10 | set additionalfiles=com/swabunga/spell/event/SpellCheckListener.class\r |
| 11 | goto compilecore\r |
| 12 | spellmaker:\r |
| 13 | echo ==============================\r |
| 14 | echo Spellcheck version compilation\r |
| 15 | echo ==============================\r |
| 16 | set compilemode=spell\r |
| 17 | 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 |
| 18 | goto compilecore\r |
| 19 | compilecore:\r |
| 20 | echo [] compiling core...\r |
| 21 | javac -deprecation com/hexidec/ekit/EkitCore.java\r |
| 22 | if $status == 0 goto compilecheck\r |
| 23 | goto failure\r |
| 24 | compilecheck:\r |
| 25 | if $inputmode == modespell goto compilespellcore\r |
| 26 | goto compileapp\r |
| 27 | compilespellcore:\r |
| 28 | echo [] compiling spellchecker core...\r |
| 29 | javac -deprecation com/hexidec/ekit/EkitCoreSpell.java\r |
| 30 | if $status == 0 goto compileapp\r |
| 31 | goto failure\r |
| 32 | compileapp:\r |
| 33 | echo [] compiling applet...\r |
| 34 | javac -deprecation com/hexidec/ekit/EkitApplet.java\r |
| 35 | if $status == 0 goto makejar\r |
| 36 | goto failure\r |
| 37 | makejar:\r |
| 38 | echo [] jarring...\r |
| 39 | jar cf ekitapplet.jar com/hexidec/ekit/*.class com/hexidec/ekit/action/*.class com/hexidec/ekit/component/*.class com/hexidec/util/Base64Codec.class com/hexidec/util/Translatrix.class com/hexidec/ekit/icons/*.gif com/hexidec/ekit/*.properties $additionalfiles\r |
| 40 | if $status == 0 goto modjar\r |
| 41 | goto failure\r |
| 42 | modjar:\r |
| 43 | echo [] modifying jar permissions...\r |
| 44 | chmod 755 ekitapplet.jar\r |
| 45 | if $status == 0 goto cleanup\r |
| 46 | goto failure\r |
| 47 | cleanup:\r |
| 48 | echo [] cleaning up Ekit classes...\r |
| 49 | rm com/hexidec/ekit/*.class\r |
| 50 | rm com/hexidec/ekit/action/*.class\r |
| 51 | rm com/hexidec/ekit/component/*.class\r |
| 52 | rm com/hexidec/util/Base64Codec.class\r |
| 53 | rm com/hexidec/util/Translatrix.class\r |
| 54 | rm com/swabunga/spell/event/*.class\r |
| 55 | if $compilemode == spell goto spellpurge\r |
| 56 | goto finish\r |
| 57 | spellpurge:\r |
| 58 | echo [] cleaning up spellcheck classes...\r |
| 59 | rm com/swabunga/spell/engine/*.class\r |
| 60 | rm com/swabunga/spell/swing/*.class\r |
| 61 | goto finish\r |
| 62 | failure:\r |
| 63 | echo [*] make failed with an error level of $status\r |
| 64 | goto finish\r |
| 65 | finish:\r |
| 66 | echo [] finished\r |