generate.sh: added ability to generate a single release.

This commit is contained in:
Pedro Salgado 2016-12-30 19:42:58 -07:00
parent e34858bb90
commit 603f632bdc

View File

@ -3,11 +3,20 @@
#
# Generate Odoo release specific Dockerfiles.
#
# usage:
# # all
# bash generate.sh
#
# # single release
# bash generate.sh 20161230
#
# author: Pedro Salgado <steenzout@ymail.com>
# version: 1.0
#
# #####
ARG_RELEASE="${1}"
for ODOO_VERSION in 8.0 9.0 10.0
do
@ -18,6 +27,8 @@ do
ODOO_RELEASE="${line_array[0]}"
ODOO_SHA1SUM="${line_array[1]}"
if [[ "${ARG_RELEASE}" == "" || "${ARG_RELEASE}" == "${ODOO_RELEASE}" ]]; then
mkdir -p "${ODOO_VERSION}/${ODOO_RELEASE}" || true
echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/vars.env..."
@ -40,6 +51,8 @@ EOF"
cp "${ODOO_VERSION}/openerp-server.conf" "${ODOO_VERSION}/${ODOO_RELEASE}/"
fi
fi
done
done