Skip to content

Commit

Permalink
Allow for more than one digit in htscodecs version number
Browse files Browse the repository at this point in the history
  • Loading branch information
daviesrob authored and jkbonfield committed Sep 9, 2024
1 parent f41fda4 commit 86b0652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ htscodecs/htscodecs/version.h: force
vers=`cd $(srcdir)/htscodecs && git describe --always --dirty --match 'v[0-9]\.[0-9]*'` && \
case "$$vers" in \
v*) vers=$${vers#v} ;; \
*) iv=`awk '/^AC_INIT\(htscodecs,/ { match($$0, /[0-9](\.[0-9])*/); print substr($$0, RSTART, RLENGTH) }' $(srcdir)/htscodecs/configure.ac` ; vers="$$iv$${vers:+-g$$vers}" ;; \
*) iv=`awk '/^AC_INIT\(htscodecs,/ { match($$0, /[0-9]+(\.[0-9]+)*/); print substr($$0, RSTART, RLENGTH) }' $(srcdir)/htscodecs/configure.ac` ; vers="$$iv$${vers:+-g$$vers}" ;; \
esac ; \
if ! grep -s -q '"'"$$vers"'"' $@ ; then \
echo 'Updating $@ : #define HTSCODECS_VERSION_TEXT "'"$$vers"'"' ; \
Expand Down

0 comments on commit 86b0652

Please sign in to comment.