From 5f078030fa17461a55d1ddb11791da0fe78cbe4d Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Fri, 30 Dec 2016 16:11:05 -0700 Subject: [PATCH] generate.sh: put vars.env template in script and remove unnecessary copy commands. --- generate.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/generate.sh b/generate.sh index 874702b..e01e881 100755 --- a/generate.sh +++ b/generate.sh @@ -8,7 +8,7 @@ # # ##### -for ODOO_VERSION in 9.0 +for ODOO_VERSION in 8.0 9.0 10.0 do for line in `cat "${ODOO_VERSION}/releases.txt"` @@ -22,7 +22,9 @@ do echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/vars.env..." eval "cat > ${ODOO_VERSION}/${ODOO_RELEASE}/vars.env << EOF -$(cat ${ODOO_VERSION}/vars.env) +ODOO_RELEASE=${ODOO_RELEASE} +ODOO_SHA1SUM=${ODOO_SHA1SUM} +ODOO_VERSION=${ODOO_VERSION} EOF" echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/Dockerfile..." @@ -31,8 +33,5 @@ EOF" $(cat ${ODOO_VERSION}/Dockerfile.release) EOF" - cp "${ODOO_VERSION}/entrypoint.sh" "${ODOO_VERSION}/${ODOO_RELEASE}" - cp "${ODOO_VERSION}/openerp-server.conf" "${ODOO_VERSION}/${ODOO_RELEASE}" - done done