generate.sh: put vars.env template in script and remove unnecessary copy commands.

This commit is contained in:
Pedro Salgado 2016-12-30 16:11:05 -07:00
parent 263d95d517
commit 5f078030fa

View File

@ -8,7 +8,7 @@
# #
# ##### # #####
for ODOO_VERSION in 9.0 for ODOO_VERSION in 8.0 9.0 10.0
do do
for line in `cat "${ODOO_VERSION}/releases.txt"` for line in `cat "${ODOO_VERSION}/releases.txt"`
@ -22,7 +22,9 @@ do
echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/vars.env..." echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/vars.env..."
eval "cat > ${ODOO_VERSION}/${ODOO_RELEASE}/vars.env << EOF 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" EOF"
echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/Dockerfile..." echo "generating ${ODOO_VERSION}/${ODOO_RELEASE}/Dockerfile..."
@ -31,8 +33,5 @@ EOF"
$(cat ${ODOO_VERSION}/Dockerfile.release) $(cat ${ODOO_VERSION}/Dockerfile.release)
EOF" EOF"
cp "${ODOO_VERSION}/entrypoint.sh" "${ODOO_VERSION}/${ODOO_RELEASE}"
cp "${ODOO_VERSION}/openerp-server.conf" "${ODOO_VERSION}/${ODOO_RELEASE}"
done done
done done