root/trunk/startDebug.sh

Revision 1289, 0.9 KB (checked in by stefan, 9 months ago)

updated the start scripts

  • 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
21svn up
22ant clearDependentClasses
23ant compile
24
25# rename debug.log / error.log to last_debug.log / last_error.log
26for f in debug error; do
27  if [ -e $f.log ]; then
28    mv $f.log last_$f.log
29  fi
30done
31
32LIB=""
33for file in `ls lib/`
34do
35   LIB="$LIB:lib/$file"
36done
37
38MAC=""
39if [ `uname` = "Darwin" ]
40then
41  MAC="-Xdock:name=JLatexEditor -Xdock:icon=src/images/icon_32.png"
42fi
43
44java -Xmx200M $MAC "-Djlatexeditor.working_dir=$USER_PWD" -cp build/classes/$LIB jlatexeditor.JLatexEditorJFrame "$@" > debug.log 2> error.log &
Note: See TracBrowser for help on using the browser.