1 |
#!/bin/bash
|
2 |
|
3 |
crabDir=$1
|
4 |
bossDir=$2
|
5 |
dest=$3
|
6 |
|
7 |
echo $crabDir, $bossDir, $dest
|
8 |
mkdir $dest
|
9 |
mkdir $dest/bin
|
10 |
mkdir $dest/lib
|
11 |
mkdir $dest/python
|
12 |
mkdir $dest/script
|
13 |
|
14 |
# copy bin
|
15 |
cp -d $bossDir/bin/* $dest/bin/.
|
16 |
ln -s $crabDir/python/crab.py $dest/bin/.
|
17 |
|
18 |
# copy lib
|
19 |
cp -d $bossDir/lib/*.so* $dest/lib/.
|
20 |
#cp $bossDir/log4cplus/lib/*.so* $dest/lib/.
|
21 |
cp -d $bossDir/mysql/lib/*.so* $dest/lib/.
|
22 |
cp -d $bossDir/sqlite/lib/*.so* $dest/lib/.
|
23 |
|
24 |
# copy python
|
25 |
cp -d $crabDir/python/* $dest/python/.
|
26 |
|
27 |
# copy script
|
28 |
cp -d $crabDir/python/BossScript/* $dest/script/.
|
29 |
|
30 |
# create configure
|
31 |
cp -d $crabDir/python/configure* $dest/.
|