summaryrefslogtreecommitdiff
path: root/storage/ndb/home/bin/ndb_deploy
blob: 773fc9b8fd7f81403936342651d10bcf24dd4ca6 (plain)
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
#!/bin/sh

if [ $# -eq 0 ]
then
    for i in $DEPLOY_DST 
    do
      rsync -r -v --exclude '*.a' $NDB_TOP/bin $NDB_TOP/lib $i/
    done
else
    while [ $# -gt 0 ]
    do
      arg=$1
      shift;
      if [ `echo $arg | grep -c lib` -eq 0 ]
      then
	  dst=bin/
      else
	  dst=lib/
      fi

      for i in $DEPLOY_DST 
      do
	rsync -v $arg $i/$dst
      done
    done
fi