Browse Source

Improve DavMail shell scripts

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2113 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 10 years ago
parent
commit
94c5256100
  1. 8
      davmail.sh
  2. 5
      src/bin/davmail

8
davmail.sh

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh
# Ubuntu setup instructions :
# install java :
# sudo apt-get install sun-java6-bin
# launch davmail :
# sudo apt-get install default-jre
# launch davmail
BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1

5
src/bin/davmail

@ -1,4 +1,7 @@ @@ -1,4 +1,7 @@
#!/bin/sh
#
# Usage: davmail [</path/to/davmail.properties>]
#
export LD_LIBRARY_PATH=/usr/lib/jni
for i in /usr/share/davmail/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -Xmx512M -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:$CLASSPATH davmail.DavGateway "$@"
exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:$CLASSPATH davmail.DavGateway "$@"

Loading…
Cancel
Save