You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Insert various info into .VERSION file when
`git archive` is performed.
- Latest tag
- Commit that archive/tag is based on
- Author, date, signature info for that commit
- Teach top level CMakeLists.txt how to:
- Deal with the `git archive` modified version
of .VERSION
- Check if src dir is a git repo
- Extract version info from `git describe`
- Fall back on manually entered version string
in .VERSION when it can't be extracted from
git
- Embed detailed version info in caf and cafrun
that was extracted by git
- Ensure install.sh and other build scripts will
fetch the `git archive` created version info,
or fall back onto manually entered version in .VERSION
Copy file name to clipboardExpand all lines: .travis.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ after_script:
204
204
- |
205
205
set -o errexit
206
206
if [[ "${TRAVIS_TAG}" ]]; then
207
-
if [[ "v${TRAVIS_TAG}" != "v$(sed -n 's/\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}\)/\1/p' .VERSION)" ]]; then
207
+
if [[ "v${TRAVIS_TAG}" != "v$(sed -n '/[0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}/{s/^\([^.]*\)\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}\)\(.*\)/\2/p;q;}' .VERSION)" ]]; then
208
208
echo "ERROR: You are trying to tag a new release but have a version missmatch in \`.VERSION\`"
0 commit comments