diff options
| author | Shireesh Anjal <shireesh@gluster.com> | 2011-05-02 15:49:33 +0530 |
|---|---|---|
| committer | Shireesh Anjal <shireesh@gluster.com> | 2011-05-02 15:58:45 +0530 |
| commit | 8a6ab8ad42b8c859c5c5eb594f1e13ee8cb9e5cb (patch) | |
| tree | 8803e598f5cf1ea61c2d77c2bce6c47e8d9e2600 /build | |
| parent | 3227c53d097b715efcbef0029e70abf68eff5219 (diff) | |
| parent | 9100c90d301d62dbba761a1ae077f0485581d2b0 (diff) | |
Merge branch 'build'
Diffstat (limited to 'build')
| -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..043121fc --- /dev/null +++ b/build/package-scripts.sh @@ -0,0 +1,32 @@ +DIR_NAME=gmc-scripts +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!" |
