daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Apr 28th, 2011 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Get architecture
  4. ARCH=`uname -m | sed -e s/x86_64/64/ -e s/i.86/32/`
  5.  
  6. # Additionnal JVM arguments
  7. CLIENTARGS=""
  8.  
  9. if [ $ARCH -eq 32 ]
  10. then
  11.     CLIENTARGS="-client -Xmx256m"
  12. fi
  13.  
  14. javabin=`which java`
  15.  
  16. SCDIR=/usr/lib/sip-communicator
  17. LIBPATH=$SCDIR/lib
  18. CLASSPATH=$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar
  19. FELIX_CONFIG=$LIBPATH/felix.client.run.properties
  20. LOG_CONFIG=$LIBPATH/logging.properties
  21. COMMAND="$javabin $CLIENTARGS -classpath $CLASSPATH -Djna.library.path=$LIBPATH/native -Dfelix.config.properties=file:$FELIX_CONFIG -Djava.util.logging.config.file=$LOG_CONFIG net.java.sip.communicator.launcher.SIPCommunicator"
  22.  
  23. # set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's)
  24. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBPATH/native
  25.  
  26. cd $SCDIR
  27.  
  28. exec $COMMAND $*
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top