Mercurial Hosting > luan
changeset 306:7f38793a99ee
add tar-luan.sh
git-svn-id: https://luan-java.googlecode.com/svn/trunk@307 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 22 Dec 2014 08:27:08 +0000 |
parents | 5e7450ac27f2 |
children | 4bf49f0a46b3 |
files | dist/jars/luan-core-trunk.jar dist/jars/luan-logging-trunk.jar dist/jars/luan-lucene-trunk.jar dist/jars/luan-mail-trunk.jar dist/jars/luan-web-trunk.jar dist/scripts/install.sh dist/scripts/tar-luan.sh |
diffstat | 7 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dist/scripts/install.sh Mon Dec 22 08:27:08 2014 +0000 @@ -0,0 +1,11 @@ +cd `dirname $0` + +cat >/usr/local/bin/luan <<End +for i in `pwd`/jars/* ; do CLASSPATH=\$CLASSPATH:\$i ; done + +java -classpath \$CLASSPATH luan.Luan \$* +End + +chmod +x /usr/local/bin/luan + +echo "the command 'luan' has been installed"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dist/scripts/tar-luan.sh Mon Dec 22 08:27:08 2014 +0000 @@ -0,0 +1,22 @@ +. check_luan_home.sh + +rm -rf $LUAN_HOME/tar + +mkdir $LUAN_HOME/tar +mkdir $LUAN_HOME/tar/luan +mkdir $LUAN_HOME/tar/luan/jars + +cp $LUAN_HOME/dist/jars/* $LUAN_HOME/tar/luan/jars +cp $LUAN_HOME/web/ext/* $LUAN_HOME/tar/luan/jars +cp $LUAN_HOME/logging/ext/* $LUAN_HOME/tar/luan/jars +cp $LUAN_HOME/mail/ext/* $LUAN_HOME/tar/luan/jars +cp $LUAN_HOME/lucene/ext/* $LUAN_HOME/tar/luan/jars + +cp $LUAN_HOME/dist/scripts/install.sh $LUAN_HOME/tar/luan +chmod +x $LUAN_HOME/tar/luan/install.sh + +cd $LUAN_HOME/tar +tar -cf luan.tar luan +mv luan.tar ~/Dropbox/luan + +rm -r $LUAN_HOME/tar