Compare commits

...
Sign in to create a new pull request.

1 commit

4 changed files with 7 additions and 10 deletions

2
cat.c
View file

@ -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;

View file

@ -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()

View file

@ -1 +0,0 @@
0.1

View file

@ -1 +0,0 @@
0.1 meow.c