Skip to content

Commit

Permalink
build: Replace _rc1 with ~rc1 in version.h
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoekes committed Jul 2, 2018
1 parent cbcabc6 commit 8050f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Build issues:
with the autogenerated files and valid version.h (#270, reported by AlexB).
* Remove hardcoded build datetime from binary, for "reproducible builds".
(#286, by Victor Seva.)
* Replace underscore in tag-name with tilde, for debian-style "~rc1" version
suffix.

Bugs:

Expand Down
2 changes: 1 addition & 1 deletion m4/am_git_version.mh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
file_version := $(shell sed -e \
'/^\#define SIPP_VERSION /!d;s/[^"]*"//;s/".*//' \
include/version.h 2>/dev/null)
git_version := $(shell git describe --tags --always 2>/dev/null)
git_version := $(shell git describe --tags --always 2>/dev/null | sed -e 's/_/~/g')
# If there is no git, use the existing include/version.h
ifeq ($(git_version),)
git_version := $(file_version)
Expand Down

0 comments on commit 8050f2d

Please sign in to comment.