1 echo JAVA_HOME=$JAVA_HOME 2 3 $JAVA_HOME/bin/javac com/mot/dm/io/*.java 4 5 echo Please check compilation result for com/mot/dm/io/*.java 6 echo press Enter if OK or Ctrl+C 7 read $dummy 8 9 $JAVA_HOME/bin/javac -classpath .:../dmt-tools/lib/joda-time-1.1.jar:../dmt-tools/lib/jakarta-regexp-1.4.jar com/mot/dm/core/*.java 10 11 echo Please check compilation result for com/mot/dm/core/*.java 12 echo press Enter if OK or Ctrl+C 13 read $dummy 14 15 $JAVA_HOME/bin/javac com/mot/dm/tool/*.java 16 17 echo Please check compilation result for com/mot/dm/tool/*.java 18 echo press Enter if OK or Ctrl+C 19 read $dummy 20 21 rm -f GenTool.jar 22 23 echo Creating jar ... 24 25 $JAVA_HOME/bin/jar cvf GenTool.jar com/mot/dm/core/*.class 26 27 $JAVA_HOME/bin/jar uvf GenTool.jar com/mot/dm/tool/*.class 28 29 $JAVA_HOME/bin/jar uvf GenTool.jar com/mot/dm/io/*.class 30 31 echo Removing classes ... 32 33 rm -f com/mot/dm/core/*.class 34 rm -f com/mot/dm/tool/*.class 35 rm -f com/mot/dm/io/*.class 36 37 echo done 38 39