mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
add and use a version.c / version.h pair
version.c is now object code which is recompiled each time ssrf-version.h changes, while the interface file version.h remains that same at all times and files which include it will not need to be recompiled. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f6dbed1fc6
commit
c45768a09f
9 changed files with 51 additions and 17 deletions
|
@ -13,7 +13,7 @@
|
|||
#include "dive.h"
|
||||
#include "device.h"
|
||||
#include "membuffer.h"
|
||||
#include "ssrf-version.h"
|
||||
#include "version.h"
|
||||
|
||||
/*
|
||||
* handle libgit2 revision 0.20 and earlier
|
||||
|
@ -990,7 +990,7 @@ static void create_commit_message(struct membuffer *msg)
|
|||
} while ((dc = dc->next) != NULL);
|
||||
put_format(msg, "\n");
|
||||
}
|
||||
put_format(msg, "Created by subsurface %s\n", VERSION_STRING);
|
||||
put_format(msg, "Created by subsurface %s\n", subsurface_version());
|
||||
}
|
||||
|
||||
static int create_new_commit(git_repository *repo, const char *branch, git_oid *tree_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue