try fix genversion for appveyir
This commit is contained in:
parent
98342dd0e0
commit
a7649ad71d
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,10 @@ int main(int argc, char * argv[]) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (git_rev == NULL) {
|
||||
needs_update = true;
|
||||
}
|
||||
|
||||
if (!needs_update) {
|
||||
needs_update = strcmp(old_rev, git_rev);
|
||||
}
|
||||
|
@ -101,6 +105,7 @@ int main(int argc, char * argv[]) {
|
|||
puts("[genversion] no update needed");
|
||||
return 0;
|
||||
}
|
||||
puts("[genversion] update needed");
|
||||
|
||||
file = fopen(argv[1], "w");
|
||||
if ( ! file )
|
||||
|
|
Loading…
Reference in a new issue