[vlc-devel] commit: Fall back if this is not a git checkout ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jun 3 22:31:39 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun  3 23:31:27 2009 +0300| [7b9914e2c076f46214c83a18819aaa7eaba2ee88] | committer: Rémi Denis-Courmont 

Fall back if this is not a git checkout

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b9914e2c076f46214c83a18819aaa7eaba2ee88
---

 src/Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 01b2a63..bd710be 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -488,7 +488,8 @@ revision.txt:
 
 stamp-revision:
 	rm -f -- revision.tmp
-	git describe --tags --long --always > revision.tmp
+	(git --git-dir="$(top_srcdir)/.git/" describe --tags --long \
+		--always || echo exported) > revision.tmp
 	diff revision.tmp revision.txt >/dev/null 2>&1 || \
 	mv -f -- revision.tmp revision.txt
 




More information about the vlc-devel mailing list