X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=ekit%2FMakeEkit.csh;h=f744adee0bb8bce615d2c7b752689715d79cdc6a;hb=6ce136dad31e39a1684a657ed5c9b33fba069623;hp=464b0424da9580782cc7462e409ff2eb286f3d5d;hpb=6dd702802493556cff5e55eb4982d23e79a30832;p=old-projects.git diff --git a/ekit/MakeEkit.csh b/ekit/MakeEkit.csh index 464b042..f744ade 100755 --- a/ekit/MakeEkit.csh +++ b/ekit/MakeEkit.csh @@ -1,63 +1,66 @@ -#! /bin/csh -set inputmode=mode$1 -if $inputmode == modespell goto spellmaker -goto basicmaker -basicmaker: - echo ========================= - echo Basic version compilation - echo ========================= - set mode=basic - echo [] creating core... - cp com/hexidec/ekit/EkitCore_Basic.java com/hexidec/ekit/EkitCore.java - if $status == 0 goto compilecore - goto failure -spellmaker: - echo ============================== - echo Spellcheck version compilation - echo ============================== - set mode=spell - echo [] creating core... - cp com/hexidec/ekit/EkitCore_Spell.java com/hexidec/ekit/EkitCore.java - if $status == 0 goto compilecore - goto failure -compilecore: - echo [] compiling core... - javac com/hexidec/ekit/EkitCore.java - if $status == 0 goto compileapp - goto failure -compileapp: - echo [] compiling application... - javac com/hexidec/ekit/Ekit.java - if $status == 0 goto makejar - goto failure -makejar: - echo [] jarring... - if $mode == basic 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/util/Base64Codec.class com/hexidec/util/Translatrix.class com/hexidec/ekit/icons/*.gif com/hexidec/ekit/*.properties - if $mode == spell 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/util/Base64Codec.class com/hexidec/util/Translatrix.class com/hexidec/ekit/icons/*.gif com/hexidec/ekit/*.properties 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 - if $status == 0 goto modjar - goto failure -modjar: - echo [] modifying jar permissions... - chmod 755 ekit.jar - if $status == 0 goto cleanup - goto failure -cleanup: - echo [] cleaning up Ekit classes... - rm com/hexidec/ekit/*.class - rm com/hexidec/ekit/action/*.class - rm com/hexidec/ekit/component/*.class - rm com/hexidec/util/Base64Codec.class - rm com/hexidec/util/Translatrix.class - if $mode == spell goto spellpurge - goto finish -spellpurge: - echo [] cleaning up spellcheck classes... - rm com/swabunga/spell/engine/*.class - rm com/swabunga/spell/event/*.class - rm com/swabunga/spell/swing/*.class - goto finish -failure: - echo [*] make failed with an error level of $status - goto finish -finish: - echo [] finished +#! /bin/csh +set inputmode=mode$1 +if $inputmode == modespell goto spellmaker +goto basicmaker +basicmaker: + echo ========================= + echo Basic version compilation + echo ========================= + set compilemode=basic + set additionalfiles=com/swabunga/spell/event/SpellCheckListener.class + 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" + goto compilecore +compilecore: + echo [] compiling core... + javac -deprecation com/hexidec/ekit/EkitCore.java + if $status == 0 goto compilecheck + goto failure +compilecheck: + if $inputmode == modespell goto compilespellcore + goto compileapp +compilespellcore: + echo [] compiling spellchecker core... + javac -deprecation com/hexidec/ekit/EkitCoreSpell.java + if $status == 0 goto compileapp + goto failure +compileapp: + echo [] compiling application... + javac -deprecation com/hexidec/ekit/Ekit.java + if $status == 0 goto makejar + goto failure +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/util/Base64Codec.class com/hexidec/util/Translatrix.class com/hexidec/ekit/icons/*.gif com/hexidec/ekit/*.properties $additionalfiles + if $status == 0 goto modjar + goto failure +modjar: + echo [] modifying jar permissions... + chmod 755 ekit.jar + if $status == 0 goto cleanup + goto failure +cleanup: + echo [] cleaning up Ekit classes... + rm com/hexidec/ekit/*.class + rm com/hexidec/ekit/action/*.class + rm com/hexidec/ekit/component/*.class + rm com/hexidec/util/Base64Codec.class + rm com/hexidec/util/Translatrix.class + rm com/swabunga/spell/event/*.class + if $compilemode == spell goto spellpurge + goto finish +spellpurge: + echo [] cleaning up spellcheck classes... + rm com/swabunga/spell/engine/*.class + rm com/swabunga/spell/swing/*.class + goto finish +failure: + echo [*] make failed with an error level of $status + goto finish +finish: + echo [] finished