[Android] Makefile: show the current revision

Edward Wang git at videolan.org
Fri Jun 29 03:13:58 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Jun 28 21:13:38 2012 -0400| [22249d20089d5108adcfe0c0fe8ad2ef37590a07] | committer: Edward Wang

Makefile: show the current revision

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=22249d20089d5108adcfe0c0fe8ad2ef37590a07
---

 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d3515d4..287e165 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ $(VLC_APK): $(LIBVLCJNI) $(JAVA_SOURCES)
 	@echo
 	date +"%Y-%m-%d" > $(SRC)/assets/builddate.txt
 	echo `id -u -n`@`hostname` > $(SRC)/assets/builder.txt
-	echo `git describe --always` > $(SRC)/assets/revision.txt
+	git rev-parse --short HEAD > $(SRC)/assets/revision.txt
 	$(VERBOSE)cd $(SRC) && ant $(ANT_OPTS) $(ANT_TARGET)
 
 VLC_MODULES=`./find_modules.sh $(VLC_BUILD_DIR)`



More information about the Android mailing list