<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vultures/vultures_port_version.h</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 vultures/build_n
 vultures/build_s
 *.swp
+.git-revision</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ SLASHEM = claw
 GAMENETHACK = $(GAME)$(NETHACK)
 GAMESLASHEM = $(GAME)$(SLASHEM)
 DATE := $(shell date +%Y%m%d%H%M%S)
-GITREVISION := $(strip $(shell git rev-list `git describe --tags --abbrev=0`..master|wc -l))
+GITREVISION := $(strip $(shell if ! [ -f .git-revision ]; then git rev-list `git describe --tags --abbrev=0`..master|wc -l &gt; .git-revision; fi; cat .git-revision))
 VERSION = 2.2.$(GITREVISION)
 RELEASE = 1
 FULLNAME = $(GAME)-$(VERSION)
@@ -209,6 +209,7 @@ $(DISTDIR)/$(FULLNAME): $(DISTDIR)
 	git submodule init
 	git submodule update
 	git clone ./ $@
+	cp .git-revision $@/.
 	rm -rf $@/nethack
 	rm -rf $@/slashem
 	git clone ./nethack/ $@/nethack
@@ -217,7 +218,7 @@ $(DISTDIR)/$(FULLNAME): $(DISTDIR)
 	rm -rf $@/.gitmodules
 	rm -rf $@/nethack/.git
 	rm -rf $@/slashem/.git
-	echo &quot;#define $(GAMEDEF)_PORT_VERSION \&quot;$(VERSION)\&quot;&quot;&gt;$@/$(GAME)/$(GAME)version.h
+	echo &quot;#define $(GAMEDEF)_PORT_VERSION \&quot;$(VERSION)\&quot;&quot;&gt;$@/$(GAME)/$(GAME)_port_version.h
 	ln -s ../../$(GAME) $@/nethack/win/$(GAME)
 	ln -s ../../$(GAME) $@/slashem/win/$(GAME)
 </diff>
      <filename>GNUmakefile</filename>
    </modified>
    <modified>
      <diff>@@ -7,5 +7,5 @@
 #  define VULTURES_PORT_ID_NAME &quot;Marula&quot;
 # endif
 #endif
-#define VULTURES_PORT_VERSION &quot;UNSTABLE repo build&quot;
+#include &quot;vultures_port_version.h&quot;
 #define VULTURES_SUB_ID &quot;[Vultures &quot; VULTURES_PORT_ID_NAME &quot; - &quot; VULTURES_PORT_VERSION &quot;]&quot;</diff>
      <filename>vultures/vultures_version.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1d6075c9454a98345c8230c78f25a9ceb7d66b06</id>
    </parent>
  </parents>
  <author>
    <name>Clive Crous</name>
    <email>clive@crous.co.za</email>
  </author>
  <url>http://github.com/clivecrous/vultures/commit/a7cc3982056bb86cf9a8b10758a6f8f55f50506d</url>
  <id>a7cc3982056bb86cf9a8b10758a6f8f55f50506d</id>
  <committed-date>2009-07-18T06:46:38-07:00</committed-date>
  <authored-date>2009-07-18T06:32:03-07:00</authored-date>
  <message>Reuse revision file or create it and use vultures_port_version include for in-game version. Closes #26</message>
  <tree>b9791668dedab301212af1f1759cae810ab5295e</tree>
  <committer>
    <name>Clive Crous</name>
    <email>clive@crous.co.za</email>
  </committer>
</commit>
