[MPlayer-dev-eng] [PATCH 1/2] build: Rebuild version.h file if git metadata changed due to new commits.

Diego Biurrun diego at biurrun.de
Sun Jun 19 23:33:18 CEST 2011


While MPlayer does not currently use git, this is useful when working with
git-svn clones and will ease a future transition from Subversion to git.
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 26248d7..15dac3e 100644
--- a/Makefile
+++ b/Makefile
@@ -839,7 +839,7 @@ help_mp.h: help/help_mp-en.h $(HELP_FILE)
 	help/help_create.sh $(HELP_FILE) $(CHARSET)
 
 # rebuild version.h each time the working copy is updated
-version.h: version.sh $(wildcard .svn/entries)
+version.h: version.sh $(wildcard .svn/entries .git/logs/HEAD)
 	./$< `$(CC) -dumpversion`
 
 %$(EXESUF): %.c
-- 
1.7.5.1



More information about the MPlayer-dev-eng mailing list