Commit 9e18b78a authored by Jamie Hall's avatar Jamie Hall
Browse files


parent 19bd1812
Pipeline #281 skipped
......@@ -26,12 +26,12 @@ cd $CI_PROJECT_DIR
# Get revision number from git (without trailing newline)
REV_NUMBER=$(git rev-list --count HEAD)
echo "$BLEU""Revision number is -->${REV_NUMBER}<--" "$NORMAL"
echo -e "$BLEU""Revision number = ${REV_NUMBER}<--" "$NORMAL"
# Add current revision number to python source code (will appear in "About..." dialog)
# see
sed -i "/__version__/c\__version__ = '${CI_BUILD_TAG}'" MDANSE/
sed -i "/__revision__/c\__revision__ = '${REV_NUMBER}'/" MDANSE/
sed -i '' 's/.*__version__.*/__version__ = \"${CI_BUILD_TAG}\"/' MDANSE/
sed -i '' 's/.*__revision__.*/__revision__ = \"${REV_NUMBER}\"/' MDANSE/
#MDANSE_VERSION=$(grep -Po '(?<=__version__ = \")\d.\d.\d' MDANSE/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment