]> git.pld-linux.org Git - packages/Mesa.git/blame - keep_git_sha.patch
20160418 snapshot
[packages/Mesa.git] / keep_git_sha.patch
CommitLineData
075ec3a3
JK
1diff -dur -x '*~' Mesa-vulkan-s20160220.orig/src/mesa/Makefile.am Mesa-vulkan-s20160220/src/mesa/Makefile.am
2--- Mesa-vulkan-s20160220.orig/src/mesa/Makefile.am 2016-02-19 17:05:35.000000000 +0100
3+++ Mesa-vulkan-s20160220/src/mesa/Makefile.am 2016-02-20 16:06:38.690371982 +0100
4@@ -36,28 +36,6 @@
5 gldir = $(includedir)/GL
6 gl_HEADERS = $(top_srcdir)/include/GL/*.h
7
8-.PHONY: main/git_sha1.h.tmp
9-main/git_sha1.h.tmp:
10- @# Don't assume that $(top_srcdir)/.git is a directory. It may be
11- @# a gitlink file if $(top_srcdir) is a submodule checkout or a linked
12- @# worktree.
13- @touch main/git_sha1.h.tmp
14- @if test -e $(top_srcdir)/.git; then \
15- if which git > /dev/null; then \
16- git --git-dir=$(top_srcdir)/.git log -n 1 --oneline | \
17- sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
18- > main/git_sha1.h.tmp ; \
19- fi \
20- fi
21-
22-main/git_sha1.h: main/git_sha1.h.tmp
23- @echo "updating main/git_sha1.h"
24- @if ! cmp -s main/git_sha1.h.tmp main/git_sha1.h; then \
25- mv main/git_sha1.h.tmp main/git_sha1.h ;\
26- else \
27- rm main/git_sha1.h.tmp ;\
28- fi
29-
30 include Makefile.sources
31
32 EXTRA_DIST = \
This page took 0.100611 seconds and 4 git commands to generate.