annotate build.sh @ 197:4c96cb73dd93

fix metatable cloning git-svn-id: https://luan-java.googlecode.com/svn/trunk@198 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 03 Jul 2014 18:36:46 +0000
parents 58c6ca5d4524
children 3918f92de5fe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
172
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
1 VERSION=trunk
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
2
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
3 cd `dirname $0`
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
4 HOME=`pwd`
172
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
5
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
6 rm dist/*.jar
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
7
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
8 set -e
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
9
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
10 echo "_G._VERSION = 'Luan $VERSION'" >core/src/luan/version.luan
172
4edbf3204ca6 add build.sh and dist
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff changeset
11
173
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
12 cd $HOME
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
13 SRC=core/src
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
14 CLASSPATH=$HOME/$SRC
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
15 javac -classpath $CLASSPATH `find $SRC -name *.java`
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
16 cd $SRC
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
17 jar cvf $HOME/dist/luan-core-$VERSION.jar `find . -name *.class -o -name *.luan`
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
18
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
19 cd $HOME
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
20 SRC=web/src
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
21 CLASSPATH=$HOME/core/src:$HOME/$SRC
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
22 for i in $HOME/web/ext/* ; do CLASSPATH=$CLASSPATH:$i ; done
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
23 javac -classpath $CLASSPATH `find $SRC -name *.java`
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
24 cd $SRC
58c6ca5d4524 fix build.sh
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents: 172
diff changeset
25 jar cvf $HOME/dist/luan-web-$VERSION.jar `find . -name *.class -o -name *.luan`