forked from council-of-rivendell/MeCCG-Linux-ES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetw
32 lines (27 loc) · 794 Bytes
/
Metw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/sh -l
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./lib"
DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:./lib"
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
CCG_PATH=`which $0`
CCG_PATH=`dirname $CCG_PATH`
SERVER=`gccg.meccg.es`
cd $CCG_PATH
if [ ! -f ./scripts/client.functions ]; then
echo "You must install 'client' package."
exit 1
fi
if [ "$1" = "--text" ]; then
if [ ! -x ./ccg_text_client ]; then
echo "You must install package containing program binaries for text version, for example 'linux-text-i386'."
exit 1
fi
shift
./ccg_text_client $* metw.xml
else
if [ ! -x ./ccg_client ]; then
echo "You must install package containing program binaries, for example 'linux-i386'."
exit 1
fi
./ccg_client --server gccg.meccg.es --design 1024x700 $* metw.xml
fi