-
Notifications
You must be signed in to change notification settings - Fork 16
/
exat.sh
executable file
·55 lines (50 loc) · 1.32 KB
/
exat.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
help()
{
echo ""
echo "usage: exat.sh platform_name flags"
echo ""
echo "Flags:"
echo " -noshell -- do not start erlang shell"
echo " -http_port PORT -- use given http port instead of 7779 (default)"
echo " -start app1,..,appN -- start the given agent applications"
echo ""
echo ""
echo "eXAT, an erlang eXperimental Agent Tool"
echo "ERESYE, an ERlang Expert SYstem Engine"
echo "Copyright (C) 2005-07 Corrado Santoro ([email protected])"
echo "Copyright (C) 2005-07 Francesca Gangemi ([email protected])"
echo "This program comes with ABSOLUTELY NO WARRANTY; for details type '$0 --license'."
echo "This is free software, and you are welcome to redistribute it"
echo "under certain conditions; type '$0 --license' for details."
echo ""
exit 1
}
if [ $# -gt 0 ]
then
# if [ "$1" == "--license" ];
# then
# less `dirname $0`/LICENSE.txt
# exit
# fi
# if [ "$1" == "-license" ];
# then
# less `dirname $0`/LICENSE.txt
# exit
# fi
# if [ "$1" == "--help" ];
# then
# help
# exit
# fi
# if [ "$1" == "-help" ];
# then
# help
# exit
# fi
PLATFORM_NAME=$1
shift
erl -pa ebin/ -sname $PLATFORM_NAME -boot start_sasl -s exat_app $*
else
help
fi