Skip to content
Snippets Groups Projects
Commit 3331891a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

release: add .version file

parent f6344a93
No related branches found
No related tags found
No related merge requests found
...@@ -19,9 +19,12 @@ else ...@@ -19,9 +19,12 @@ else
git tag -s "v$TAG" -m "Release v$TAG" git tag -s "v$TAG" -m "Release v$TAG"
fi fi
echo $TAG > .version
if [[ -d cmake && -x cmake/git-archive-all.sh ]] if [[ -d cmake && -x cmake/git-archive-all.sh ]]
then then
./cmake/git-archive-all.sh --prefix "${SOFTAG}/" -v "${SOFTAG}.tar" ./cmake/git-archive-all.sh --prefix "${SOFTAG}/" -v "${SOFTAG}.tar"
tar rf "${SOFTAG}.tar" --transform "s=.=${SOFTAG}/.=" .version
gzip "${SOFTAG}.tar" gzip "${SOFTAG}.tar"
else else
git archive --format=tar.gz --prefix="${SOFTAG}/" HEAD > ${SOFTAG}.tar.gz git archive --format=tar.gz --prefix="${SOFTAG}/" HEAD > ${SOFTAG}.tar.gz
......
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