Provide the vcs_tag command. Closes #33.
parent
46f932909a
commit
57e74de3ae
4 changed files with 31 additions and 1 deletions
@ -0,0 +1,8 @@ |
||||
project('vcstag', 'c') |
||||
|
||||
version_src = vcs_tag(input : 'vcstag.c.in', |
||||
output : 'vcstag.c', |
||||
fallback : '1.0.0') |
||||
|
||||
executable('tagprog', 'tagprog.c', version_src) |
||||
|
@ -0,0 +1,9 @@ |
||||
#include<stdio.h> |
||||
|
||||
const char *vcstag; |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("Version is %s\n", vcstag); |
||||
return 0; |
||||
} |
||||
|
@ -0,0 +1,2 @@ |
||||
const char *vcstag = "@VCS_TAG@"; |
||||
|
Loading…
Reference in new issue