blob: 03664381da98e56a42ef79b041af58586345d862 (
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
28
29
30
31
32
33
34
|
ROOT_DIR=glustermg-backend-${VERSION}
DIR_NAME=${ROOT_DIR}/gmg-scripts
TAR_NAME=${ROOT_DIR}.tar
prepare-script-dir()
{
if [ -d ${DIR_NAME} ]; then
rm -rf ${DIR_NAME}
fi
mkdir -p ${DIR_NAME}
}
get-scripts()
{
cd ${DIR_NAME}
cp ../../src/com.gluster.storage.management.gateway.scripts/src/common/* .
cp ../../src/com.gluster.storage.management.gateway.scripts/src/backend/* .
chmod +x *
cd -
}
#---------------------------------------------
# Main Action Body
#---------------------------------------------
echo "Packaging Gluster Management Gateway Back-end Scripts..."
prepare-script-dir
get-scripts
/bin/rm -rf ${TAR_NAME} ${TAR_NAME}.gz
tar cvf ${TAR_NAME} ${ROOT_DIR}
gzip ${TAR_NAME}
echo "Done!"
|