rcrsync 948 Bytes
Newer Older
Juon Kawakami's avatar
init  
Juon Kawakami committed
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
#!/bin/bash
. $(dirname $0)/config.sh

cd $LOCAL_HOMEDIR

case "$1" in
    dist)
	$(dirname $0)/syncKernels.sh $KERNELDIR $KERNELDIR
#	$(dirname $0)/syncClients.sh $KERNELDIR
	;;

    maps)
	$(dirname $0)/syncKernels.sh $MAPDIR $MAPDIR
	;;
    code)
	if [ ! -z "$2" ]; then
	    $(dirname $0)/syncClients.sh $CODEDIR/$2 $CODEDIR/
	else
	    $(dirname $0)/syncClients.sh $CODEDIR  $CODEDIR
	fi
	;;

    logs)
	$(dirname $0)/gatherFromClients.sh $LOGDIR $HOME
	$(dirname $0)/gatherFromKernels.sh $LOGDIR $HOME
	;;

    all)
	$(dirname $0)/syncKernels.sh ~/scripts/ ~/scripts/
        $(dirname $0)/syncClients.sh ~/scripts/ ~/scripts/
	$(dirname $0)/syncKernels.sh $KERNELDIR/ $KERNELDIR/
#	$(dirname $0)/syncClients.sh $KERNELDIR $KERNELDIR
	$(dirname $0)/syncKernels.sh $MAPDIR/ $MAPDIR/
	$(dirname $0)/syncClients.sh $CODEDIR/ $CODEDIR/

	$(dirname $0)/gatherFromClients.sh $LOGDIR $HOME
	$(dirname $0)/gatherFromKernels.sh $LOGDIR $HOME
	;;
esac