Skip to content

Commit

Permalink
Make sure git_ver.h doesn't eat random 'g's out of tag names
Browse files Browse the repository at this point in the history
  • Loading branch information
gahr authored and flatcap committed Mar 9, 2018
1 parent c95a13b commit 079cbcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.autosetup
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ $(PGPRING): $(PGPRINGOBJS) $(LIBMUTT) $(LIBNCRYPT)

# generated
git_ver.h: $(ALL_FILES)
version=`git describe --dirty --abbrev=6 --match "neomutt-*" 2> /dev/null | sed -e 's/^neomutt-[0-9]\{8\}//' -e 's/g//'`; \
version=`git describe --dirty --abbrev=6 --match "neomutt-*" 2> /dev/null | \
sed -e 's/^neomutt-[0-9]\{8\}//; s/-g\([a-z0-9]\{6\}\)/-\1/'`; \
echo 'const char *GitVer = "'$$version'";' > git_ver.h.tmp; \
cmp -s git_ver.h.tmp git_ver.h || mv git_ver.h.tmp git_ver.h; \
rm -f git_ver.h.tmp
Expand Down

0 comments on commit 079cbcb

Please sign in to comment.