blob: 7f4dc6a633356b6fece1665a40dddacc647c8f10 [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
7ONOS_HOME=~/ONOS
8RAMCLOUD_HOME=~/ramcloud
9
10# create ramcloud lib
11cp -p ${ONOS_HOME}/src/main/java/edu/stanford/ramcloud/JRamCloud.java ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/
12cp -p ${ONOS_HOME}/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/
13cd ${HOME}/ramcloud/bindings/java/edu/stanford/ramcloud/
14javac JRamCloud.java
15./build_so.sh
16jar cvf ${RAMCLOUD_HOME}/bindings/java/RamCloud.jar ${RAMCLOUD_HOME}/bindings/java/edu/stanford/ramcloud/*.class