root/trunk/start.sh

Revision 1297, 0.7 KB (checked in by joerg, 9 months ago)

removed some bit rottening

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3USER_PWD=`pwd`
4
5# if there is only one argument which is not an option then it must be a file which we could try to open directly
6if [ $# == 1 ]; then
7  if echo "$1" | grep -q "^[^-]"; then
8    file="$1"
9
10    # local path? => make absolute
11    if echo "$file" | grep -q "^[^\/]"; then
12      file="$USER_PWD/$file"
13    fi
14
15    echo "open: $file" | nc -w 1 localhost 13231 2>/dev/null && exit 0
16  fi
17fi
18
19cd `dirname $0`
20
21LIB=""
22for file in `ls lib/`
23do
24   LIB="$LIB:lib/$file"
25done
26
27svn up
28ant clearDependentClasses
29ant compile
30
31MAC=""
32if [ `uname` = "Darwin" ]
33then
34  MAC="-Xdock:name=JLatexEditor -Xdock:icon=dev/tex-cookie.png"
35fi
36
37java -Xmx200M $MAC "-Djlatexeditor.working_dir=$USER_PWD" -cp build/classes/$LIB jlatexeditor.JLatexEditorJFrame "$@"
Note: See TracBrowser for help on using the browser.