Skip to content
Snippets Groups Projects
Commit c86e3c17 authored by Operateur's avatar Operateur
Browse files

feat(deploy): add version tag on the way

parent 36b72d00
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,15 @@
echo "Deploy module in RCM environment"
# Get the current version
version=$(git describe --tags)
# Copy Python module
ipath=/home/operateur/.local/lib/python3.6/site-packages/ArchiveExtractor
mkdir -p $ipath
cp ArchiveExtractor/*.py $ipath/ -rvf
# cwAWKSed the __init__.py file to replace the version variable
awk -v version="$version" '{ gsub("AUTOVERSIONREPLACE",version) ; print}' ArchiveExtractor/__init__.py > $ipath/__init__.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment