diff options
| author | Shireesh Anjal <shireesh@gluster.com> | 2011-05-02 15:49:04 +0530 |
|---|---|---|
| committer | Shireesh Anjal <shireesh@gluster.com> | 2011-05-02 15:49:04 +0530 |
| commit | 9100c90d301d62dbba761a1ae077f0485581d2b0 (patch) | |
| tree | 5a7223623a58ec8f40ce14d3e04184fd9ce6a75d | |
| parent | d3acbc0eda74dca6bf261be0a914485a08852b33 (diff) | |
Script for packaging the python scripts required to be present on all gluster nodes
| -rwxr-xr-x | build/package-scripts.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/build/package-scripts.sh b/build/package-scripts.sh new file mode 100755 index 00000000..7a133a85 --- /dev/null +++ b/build/package-scripts.sh @@ -0,0 +1,32 @@ +DIR_NAME=gmc-script +TAR_NAME=${DIR_NAME}.tar + +prepare-script-dir() +{ + if [ -d ${DIR_NAME} ]; then + rm -rf ${DIR_NAME} + fi + mkdir ${DIR_NAME} +} + +get-scripts() +{ + cd ${DIR_NAME} + cp ../src/com.gluster.storage.management.server.scripts/src/common/*.py . + cp ../src/com.gluster.storage.management.server.scripts/src/nodes/*.py . + cd - +} + +#--------------------------------------------- +# Main Action Body +#--------------------------------------------- +echo "Packaging Gluster Management Console Scripts..." + +prepare-script-dir +get-scripts + +/bin/rm -rf ${TAR_NAME} ${TAR_NAME}.gz +tar cvf ${TAR_NAME} ${DIR_NAME} +gzip ${TAR_NAME} + +echo "Done!" |
