summaryrefslogtreecommitdiff
path: root/startYACY.sh
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-08-05 10:43:03 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-08-05 10:43:03 +0000
commitec7238716569602420f80f8eafc1c5238cf19d7c (patch)
treef84d8a74fe7e32059c5015f3c80cf923257d1589 /startYACY.sh
parentd88b9606d11afcb6ee5386144d95d847ce7250c6 (diff)
added a very early test version of a YaCy gui component.
The gui currently does nothing else than providing a search window that sends the search string to the browser The gui is started when YaCy is started with the option -g or --gui, like ./startYACY.sh -g The gui will primary be used to provide a 'real' macintosh version that can be started and operated like any other macintosh application. A special mac application wrapper will follow. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7021 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'startYACY.sh')
-rwxr-xr-xstartYACY.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/startYACY.sh b/startYACY.sh
index 4cf678967..54f351537 100755
--- a/startYACY.sh
+++ b/startYACY.sh
@@ -44,13 +44,14 @@ Options
-l, --logging save the output of YaCy to yacy.log
-d, --debug show the output of YaCy on the console
-p, --print-out only print the command, which would be executed to start YaCy
+ -g, --gui start a gui for YaCy
USAGE
}
#startup YaCy
cd "`dirname $0`"
-options="`getopt -n YaCy -o h,d,l,p,t -l help,debug,logging,print-out,tail-log -- $@`"
+options="`getopt -n YaCy -o h,d,l,p,t,g -l help,debug,logging,print-out,tail-log,gui -- $@`"
if [ $? -ne 0 ];then
exit 1;
fi
@@ -62,6 +63,7 @@ LOGGING=0
DEBUG=0
PRINTONLY=0
TAILLOG=0
+GUI=0
for option in $options;do
if [ $isparameter -ne 1 ];then #option
case $option in
@@ -93,6 +95,9 @@ for option in $options;do
-t|--tail-log)
TAILLOG=1
;;
+ -g|--gui)
+ GUI=1
+ ;;
esac #case option
else #parameter
if [ x$option = "--" ];then #option / parameter separator
@@ -172,6 +177,10 @@ for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done
CLASSPATH=".:htroot:$CLASSPATH"
cmdline="$JAVA $JAVA_ARGS -Djava.awt.headless=true -classpath $CLASSPATH net.yacy.yacy";
+if [ $GUI -eq 1 ] #gui
+then
+ cmdline="$cmdline -gui"
+fi
if [ $DEBUG -eq 1 ] #debug
then
cmdline=$cmdline