Skip to content

Commit

Permalink
Build script: get version from git
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast committed Apr 28, 2024
1 parent eb1926c commit 346e6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

VERSION=v0.1.0
VERSION=$(git describe --tags)
OUTPUT=qmdilib-${VERSION}
OUTPUT_FILE=${OUTPUT}.tar.gz
TEMP=$(mktemp -d /tmp/${OUTPUT}-XXXXXXXX)
Expand All @@ -20,4 +20,4 @@ cd ..
tar -cf ${OUTPUT_FILE} ${OUTPUT}
popd
mv ${TEMP}/${OUTPUT_FILE} .
rm -fr ${TEMP}
rm -fr ${TEMP}

0 comments on commit 346e6f4

Please sign in to comment.