blob: 687ad995c1358fed9f75b0ba0379540acceb5e71 [file] [log] [blame]
Yuta HIGUCHI320d0f02014-02-18 19:24:40 -08001#!/bin/sh
2
3# run this script, when RAMCloud java binding is updated
4
5set -x
6
Yuta HIGUCHI247a23c2014-02-21 09:21:14 -08007ONOS_HOME=${ONOS_HOME:-~/ONOS}
8RAMCLOUD_HOME=${RAMCLOUD_HOME:-~/ramcloud}
Yuta HIGUCHI320d0f02014-02-18 19:24:40 -08009
10# create ramcloud lib
Yuta HIGUCHI247a23c2014-02-21 09:21:14 -080011cp -pvf ${ONOS_HOME}/src/main/java/edu/stanford/ramcloud/JRamCloud.java ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/
12cp -pvf ${ONOS_HOME}/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/
13cd ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/
Yuta HIGUCHI320d0f02014-02-18 19:24:40 -080014javac JRamCloud.java
15./build_so.sh
16jar cvf ${RAMCLOUD_HOME}/bindings/java/RamCloud.jar ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/*.class