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 | |
Yuta HIGUCHI | 247a23c | 2014-02-21 09:21:14 -0800 | [diff] [blame] | 7 | ONOS_HOME=${ONOS_HOME:-~/ONOS} |
| 8 | RAMCLOUD_HOME=${RAMCLOUD_HOME:-~/ramcloud} |
Yuta HIGUCHI | 320d0f0 | 2014-02-18 19:24:40 -0800 | [diff] [blame] | 9 | |
| 10 | # create ramcloud lib |
Yuta HIGUCHI | 247a23c | 2014-02-21 09:21:14 -0800 | [diff] [blame] | 11 | cp -pvf ${ONOS_HOME}/src/main/java/edu/stanford/ramcloud/JRamCloud.java ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/ |
| 12 | cp -pvf ${ONOS_HOME}/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/ |
| 13 | cd ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/ |
Yuta HIGUCHI | 320d0f0 | 2014-02-18 19:24:40 -0800 | [diff] [blame] | 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 |