-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgenbeans.sh
executable file
·29 lines (21 loc) · 911 Bytes
/
genbeans.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
cd `dirname $0`
if [ `uname -s` == Darwin ]; then
LUAJIT=tool/luajit_mac
else
LUAJIT=tool/luajit
fi
# LIB=lib/luaj-jse-2.0.3.jar
mkdir -p src/jane/bean 2> /dev/null
mkdir -p src/jane/handler 2> /dev/null
# mkdir -p src/jane/handler/... 2> /dev/null
mkdir -p port/csharp/Jane/Bean 2> /dev/null
mkdir -p port/csharp/Jane/Handler 2> /dev/null
# mkdir -p port/csharp/Jane/Handler/... 2> /dev/null
$LUAJIT tool/format_allbeans.lua allbeans.lua
# java -cp $LIB lua tool/genbeans.lua jane.bean Server,Client allbeans.lua src
# java -cp $LIB lua tool/genbeans_csharp.lua Jane.Bean ClientCS allbeans.lua port/csharp
# java -cp $LIB lua tool/genbeans_lua.lua Client allbeans.lua port/lua/src
$LUAJIT tool/genbeans.lua jane.bean Server,Client allbeans.lua src
$LUAJIT tool/genbeans_csharp.lua Jane.Bean ClientCS allbeans.lua port/csharp
$LUAJIT tool/genbeans_lua.lua Client allbeans.lua port/lua/src