Compare commits
1 commit
main
...
stable/3.4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7428365f06 |
4 changed files with 7 additions and 10 deletions
2
cat.c
2
cat.c
|
@ -5,10 +5,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include<sys/stat.h>
|
#include<sys/stat.h>
|
||||||
#include<string.h>
|
#include<string.h>
|
||||||
#include<windows.h>
|
|
||||||
int main(int argc,char *argv[])
|
int main(int argc,char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
if(argc==1) {
|
if(argc==1) {
|
||||||
read_from_stdin();
|
read_from_stdin();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
project('patricus utils', 'c', version: '3.4')
|
project('patricus utils', 'c', version: '3.4')
|
||||||
|
branch_name = run_command('git', 'rev-parse', '--abbrev-ref', 'HEAD', check: true).stdout().strip()
|
||||||
# Get the short git commit hash
|
if branch_name.startswith('stable/')
|
||||||
|
full_version = meson.project_version()
|
||||||
|
else
|
||||||
git_hash = run_command('git', 'rev-parse', 'HEAD', check: true).stdout().strip()
|
git_hash = run_command('git', 'rev-parse', 'HEAD', check: true).stdout().strip()
|
||||||
|
|
||||||
# Combine version and hash
|
|
||||||
full_version = '@0@(@1@)'.format(meson.project_version(), git_hash)
|
full_version = '@0@(@1@)'.format(meson.project_version(), git_hash)
|
||||||
|
endif
|
||||||
|
|
||||||
# Generate header
|
# Generate header
|
||||||
conf = configuration_data()
|
conf = configuration_data()
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
0.1
|
|
|
@ -1 +0,0 @@
|
||||||
0.1 meow.c
|
|
Loading…
Add table
Add a link
Reference in a new issue