Skip to content

Commit

Permalink
version string now includes the v
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Sep 30, 2022
1 parent 9164f80 commit 54ce4bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ endif()
# Version Information #

file(STRINGS ${PROJECT_SOURCE_DIR}/version.txt TGTVER)
string(REPLACE "v" "" TGTVER ${TGTVER})

# C++ Version #

Expand Down
8 changes: 4 additions & 4 deletions RELEASE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ "$VERSION" != *"."*"."* ]]; then
echo "Invalid version number"
exit 1
fi
if git tag -l | grep -w v$VERSION; then
if git tag -l | grep -w $VERSION; then
echo "Git tag already exists"
exit 1
fi
Expand All @@ -24,11 +24,11 @@ rm sliderule-$VERSION.tar.gz 2> /dev/null
#
echo $VERSION > version.txt
git add version.txt
git commit -m "Version v$VERSION"
git commit -m "Version $VERSION"

#
# Create tag and acrhive
#
git tag -a v$VERSION -m "version $VERSION"
git archive --format=tar.gz --prefix=sliderule/ v$VERSION > sliderule-$VERSION.tar.gz
git tag -a $VERSION -m "version $VERSION"
git archive --format=tar.gz --prefix=sliderule/ $VERSION > sliderule-$VERSION.tar.gz

0 comments on commit 54ce4bb

Please sign in to comment.