Skip to content

Commit

Permalink
Added build number to version string
Browse files Browse the repository at this point in the history
  • Loading branch information
ravelox committed Apr 10, 2020
1 parent 10c2832 commit 6657e54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion raveloxmidi/configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
AC_INIT([raveloxmidi],[0.8.2])
m4_define([VERSION_NUMBER],[0.8.3])
m4_define([BUILD_NUMBER],m4_esyscmd_s(pkgscripts/build_number))
m4_define([FULL_VERSION], [VERSION_NUMBER.BUILD_NUMBER])
AC_INIT([raveloxmidi],[FULL_VERSION])

AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_CANONICAL_TARGET
Expand Down
5 changes: 5 additions & 0 deletions raveloxmidi/pkgscripts/build_number
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

# Update the build number
BRANCHNAME="$(git rev-parse --abbrev-ref HEAD)"
git log "${BRANCHNAME}" --pretty=oneline | wc -l

0 comments on commit 6657e54

Please sign in to comment.