summaryrefslogtreecommitdiffstats
path: root/build/package-backend.sh
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-11-29 17:54:14 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-11-29 17:55:52 +0530
commitde1cc28b783ea90122c7f7b6cfb13567f884a696 (patch)
treea6ef2be8f52e99d41c2d661b70eb0c0361989799 /build/package-backend.sh
parentd52cd4039a185e1ac5e8d6a84c4b5dcccfe12375 (diff)
Introduced gateway backend installation script and modified build script to package it.
Also corrected typos in copyright notice.
Diffstat (limited to 'build/package-backend.sh')
-rwxr-xr-xbuild/package-backend.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/build/package-backend.sh b/build/package-backend.sh
index 9cd6703f..e20471d5 100755
--- a/build/package-backend.sh
+++ b/build/package-backend.sh
@@ -2,17 +2,17 @@
#------------------------------------------------------------------
# Copyright (c) 2006-2011 Gluster, Inc. <http://www.gluster.com>
-# This file is part of GlusterFS.
+# This file is part of Gluster Management Gateway.
#
# Gluster Management Gateway is free software; you can redistribute
# it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
-# GlusterFS is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
+# Gluster Management Gateway is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
@@ -22,6 +22,8 @@
ROOT_DIR=glustermg-backend-${VERSION}
DIR_NAME=${ROOT_DIR}/gmg-scripts
TAR_NAME=${ROOT_DIR}.tar
+INSTALL_SCRIPT_NAME=gmg-backend-install.sh
+INSTALLER_TAR_NAME=gmg-backend-installer-${VERSION}.war.tar
prepare-script-dir()
{
@@ -52,10 +54,12 @@ prepare-script-dir
get-scripts
/bin/rm -rf ${TAR_NAME} ${TAR_NAME}.gz
-tar cvf ${TAR_NAME} ${ROOT_DIR}
-gzip ${TAR_NAME}
+tar cvfz ${TAR_NAME}.gz ${ROOT_DIR}
+cp build/${INSTALL_SCRIPT_NAME} .
+tar cvfz ${INSTALLER_TAR_NAME}.gz ${TAR_NAME}.gz ${INSTALL_SCRIPT_NAME}
+
if [ ! -z "${DIST_DIR}" ]; then
- mv ${TAR_NAME}.gz ${DIST_DIR}
+ mv ${INSTALLER_TAR_NAME}.gz ${DIST_DIR}
fi
/bin/rm -rf ${ROOT_DIR}