Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
track git revision in .revision for evalbot.
Resolves issue #120 from googlecode
  • Loading branch information
coke committed Aug 24, 2010
1 parent 949c58c commit 58b1c64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,3 +10,4 @@ Makefile
/src/options.pir
/src/Tcl*.pir
partcl*
.revision
8 changes: 6 additions & 2 deletions build/Makefile.in
Expand Up @@ -107,7 +107,7 @@ GEN_SOURCES = \
src/init.pir \
src/options.pir

all: $(PARTCL_EXE)
all: $(PARTCL_EXE) .revision

$(PARTCL_EXE) : partcl.pbc
$(PBC_TO_EXE) partcl.pbc
Expand Down Expand Up @@ -137,7 +137,7 @@ fulltest: test
## cleaning

clean:
$(RM_F) partcl*
$(RM_F) partcl* revision
$(RM_F) $(GEN_SOURCES)

distclean: realclean
Expand All @@ -153,3 +153,7 @@ install: all
$(MKPATH) $(DESTDIR)$(PARROT_BIN_DIR)
$(CP) $(PARTCL_EXE) $(DESTDIR)$(PARROT_BIN_DIR)/$(PARTCL_EXE)
$(CHMOD) 775 $(DESTDIR)$(PARROT_BIN_DIR)/$(PARTCL_EXE)

.PHONY : .revision
.revision:
@git log -1 --pretty=format:%H > .revision

0 comments on commit 58b1c64

Please sign in to comment.