From 6159d8b7469c465bcf25a1e8c7c54908c1345725 Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Fri, 30 Dec 2016 18:59:02 -0700 Subject: [PATCH] generate.sh: symlink latest release. --- generate.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/generate.sh b/generate.sh index 4c9bb58..dc75e24 100755 --- a/generate.sh +++ b/generate.sh @@ -42,3 +42,17 @@ EOF" done done + + +# link latest + +for ODOO_VERSION in 8.0 9.0 10.0 +do + latest="$(find ${ODOO_VERSION} -type d | grep -v base | sort -r | head -n 1 | awk -F'/' '{ print $2 }')" + + echo "changing symlink from ${ODOO_VERSION}/${latest} to ${ODOO_VERSION}/latest..." + rm "${ODOO_VERSION}/latest" || true + cd ${ODOO_VERSION} + ln -s "${latest}" latest + cd .. +done