projects
/
anna.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Base protocol codec for comm::Engine. Supported retransmissions
[anna.git]
/
example
/
diameter
/
launcher
/
DEPLOY_clientAndServer.sh
1
#!/bin/sh
2
3
#############
4
# VARIABLES #
5
#############
6
DEPLOY_SCR=`dirname $0`/DEPLOY.sh
7
8
#############
9
# FUNCTIONS #
10
#############
11
usage() {
12
echo
13
echo "Usage: $0 <empty directory>"
14
echo
15
exit 1
16
}
17
18
#############
19
# EXECUTION #
20
#############
21
DIR=$1
22
[ "$DIR" = "" ] && usage
23
[ -d $DIR ] && usage
24
25
$DEPLOY_SCR b $DIR/client
26
$DEPLOY_SCR b $DIR/server
27
28
cd $DIR/client
29
echo c | ./configure.sh
30
31
cd - >/dev/null
32
33
cd $DIR/server
34
echo s | ./configure.sh
35
36
echo
37
echo "Done!"
38
echo
39