summarylogtreecommitdiffstats
path: root/remove_git_version_format.patch
blob: 29e7ee1693ff5e2ad1d8c6fda27d74529b24cfa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/meson.build b/meson.build
index c3937f9..9b00f0c 100644
--- a/meson.build
+++ b/meson.build
@@ -158,18 +158,18 @@ endif
 add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir)), language : 'c')
 
 version = '"@0@"'.format(meson.project_version())
-git = find_program('git', native: true, required: false)
-if git.found()
-	git_commit = run_command([git, '--git-dir=.git', 'rev-parse', '--short', 'HEAD'], check: false)
-	git_branch = run_command([git, '--git-dir=.git', 'rev-parse', '--abbrev-ref', 'HEAD'], check: false)
-	if git_commit.returncode() == 0 and git_branch.returncode() == 0
-		version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format(
-			meson.project_version(),
-			git_commit.stdout().strip(),
-			git_branch.stdout().strip(),
-		)
-	endif
-endif
+#git = find_program('git', native: true, required: false)
+#if git.found()
+#	git_commit = run_command([git, '--git-dir=.git', 'rev-parse', '--short', 'HEAD'], check: false)
+#	git_branch = run_command([git, '--git-dir=.git', 'rev-parse', '--abbrev-ref', 'HEAD'], check: false)
+#	if git_commit.returncode() == 0 and git_branch.returncode() == 0
+#		version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format(
+#			meson.project_version(),
+#			git_commit.stdout().strip(),
+#			git_branch.stdout().strip(),
+#		)
+#	endif
+#endif
 add_project_arguments('-DSWAY_VERSION=@0@'.format(version), language: 'c')
 
 # Compute the relative path used by compiler invocations.