Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <mhutchinson@novell.com>2010-08-18 20:49:18 +0400
committerMichael Hutchinson <mhutchinson@novell.com>2010-08-18 20:49:18 +0400
commitac87ae8d12d00196b8da45f905ba8adcc3ee6efe (patch)
tree883c10359050611470d22bd31f754ad7ec738766 /main/Makefile.am
parentf74aaa439546bef7f8b605352c137646baffa2b9 (diff)
Port the revision ID generation to git.
Diffstat (limited to 'main/Makefile.am')
-rw-r--r--main/Makefile.am15
1 files changed, 4 insertions, 11 deletions
diff --git a/main/Makefile.am b/main/Makefile.am
index e638b21d7b..0deddd1ac1 100644
--- a/main/Makefile.am
+++ b/main/Makefile.am
@@ -10,22 +10,15 @@ buildinfo = $(top_builddir)/build/bin/buildinfo
all:
vcrevision:
- @if test -d ../.svn; then \
+ @if test -d ../.git; then \
version=$$(cd ..; \
LANG=C; export LANG; \
- svn info | sed -n -e '/Last Changed Rev/ s/.*: //p'; \
+ git describe --dirty --always --abbrev=0; \
); \
- modified=$$( \
- LANG=C; export LANG; \
- svn st | grep -v ^\? | wc -l; \
- ); \
- if test $$modified != 0; then \
- version="$$version (modified)"; \
- fi; \
- echo "SVN revision: $$version" > "vcrevision"; \
+ echo "git revision: $$version" > "vcrevision"; \
else \
if test ! -f ./vcrevision; then \
- echo "SVN revision: unknown" > "vcrevision"; \
+ echo "git revision: unknown" > "vcrevision"; \
fi; \
fi