Yuta HIGUCHI | 320d0f0 | 2014-02-18 19:24:40 -0800 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | # run this script, when RAMCloud java binding is updated |
| 4 | |
| 5 | set -x |
| 6 | |
| 7 | ONOS_HOME=~/ONOS |
| 8 | RAMCLOUD_HOME=~/ramcloud |
| 9 | |
| 10 | # create ramcloud lib |
| 11 | cp -p ${ONOS_HOME}/src/main/java/edu/stanford/ramcloud/JRamCloud.java ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/ |
| 12 | cp -p ${ONOS_HOME}/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/ |
| 13 | cd ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/ |
| 14 | javac JRamCloud.java |
| 15 | ./build_so.sh |
| 16 | jar cvf ${RAMCLOUD_HOME}/bindings/java/RamCloud.jar ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/*.class |