mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Rename VERSION to VERSION.txt
some headers "#include <version>" an find this version file. Rename it to avoid confusion
This commit is contained in:
parent
069f4e6b2d
commit
cdc37538f8
@ -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})
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user