Rename VERSION to VERSION.txt

some headers "#include <version>" an find this version
file. Rename it to avoid confusion
This commit is contained in:
Christian Hohnstädt 2021-11-19 14:56:28 +01:00 committed by Christian Hohnstaedt
parent 069f4e6b2d
commit cdc37538f8
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ project(xca
LANGUAGES CXX
)
file(READ VERSION ver)
file(READ VERSION.txt ver)
string(REGEX MATCH "([0-9\.]*)" _ ${ver})
set(PROJECT_VERSION ${CMAKE_MATCH_1})

View File

@ -3,7 +3,7 @@
set -e
type git || exit 1
test -s VERSION && test -s changelog && test -d ../qt
test -s VERSION.txt && test -s changelog && test -d ../qt
export TVERSION="$1"
commit=master
@ -43,7 +43,7 @@ if test -n "$x"; then
exit 1
fi
echo "$TVERSION" > VERSION
echo "$TVERSION" > VERSION.txt
(
LANG=C date +"xca $TVERSION %a %b %d %Y"
echo
@ -51,7 +51,7 @@ echo "$TVERSION" > VERSION
) > changelog.new
mv changelog.new changelog
git commit VERSION changelog -m "Prepare XCA $TVERSION"
git commit VERSION.txt changelog -m "Prepare XCA $TVERSION"
git tag -a "RELEASE.$TVERSION" -m "Release version $TVERSION"
# Create the tar.gz

View File

@ -22,8 +22,8 @@ fi
branchname="build-$TVERSION"
git checkout -b "$branchname" "$commit"
echo "$TVERSION" > VERSION
git commit VERSION -m "$TVERSION"
echo "$TVERSION" > VERSION.txt
git commit VERSION.txt -m "$TVERSION"
git tag RELEASE.$TVERSION
# Create the tar.gz