-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added linux support for automated svn-repository fetching and convert…
…ing (not tested yet as I don't have a working linux system) git-svn-id: http://codeswarm.googlecode.com/svn/trunk@236 eda9c206-d64f-0410-a2f2-67f3fa0499ed
- Loading branch information
kraeusen
committed
Aug 9, 2008
1 parent
5d0452a
commit 71d88d9
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# run.sh : code_swarm launching script | ||
# need the config file as first parameter | ||
|
||
params=$@ | ||
default_config="data/sample.config" | ||
code_swarm_jar="dist/code_swarm.jar" | ||
|
||
# command line parameters basic check | ||
if [ $# = 0 ]; then | ||
# asking user for a config file | ||
echo "code_swarm project !" | ||
echo -n "Specify a config file, or ENTER for default one [$default_config] : " | ||
read config | ||
if [ ${#config} = 0 ]; then | ||
params=$default_config | ||
else | ||
params=$config | ||
fi | ||
else | ||
if [ $1 == "-h" ] || [ $1 == "--help" ]; then | ||
# if help needed, print it and exit | ||
echo "usage: run.sh <configfile>" | ||
echo "" | ||
echo " data/sample.config is the default config file" | ||
echo "" | ||
exit | ||
else | ||
echo "code_swarm project !" | ||
fi | ||
fi | ||
|
||
# checking for code_swarm java binaries | ||
if [ ! -f $code_swarm_jar ]; then | ||
echo "no code_swarm binaries !" | ||
echo "needing to build it with 'ant' and 'javac' (java-sdk)" | ||
echo "" | ||
echo "auto-trying the ant command..." | ||
if ant; then | ||
echo "" | ||
else | ||
echo "" | ||
echo "ERROR, please verify 'ant' and 'java-sdk' installation" | ||
echo -n "press a key to exit" | ||
read key | ||
echo "bye" | ||
exit | ||
fi | ||
fi | ||
|
||
# running | ||
if java -Xmx1000m -classpath dist/code_swarm.jar;lib/core.jar;lib/xml.jar;lib/vecmath.jar;lib/svnkit.jar;lib/swing-layout-1.0.3.jar;. MainView $params then | ||
# always on error due to no "exit buton" on rendering window | ||
echo "bye" | ||
# echo -n "error, press a key to exit" | ||
# read key | ||
else | ||
echo "bye" | ||
fi | ||
|
||
|