Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (15 sloc) 0.612 kb
4879a03 Makefile wraps "git archive" to record "git describe" output in tar
Sitaram Chamarty authored
1 # this is a simple wrapper around "git archive" using make
2
3 # "make [refname].tar" produces a tar of refname, then adds a file containing
4 # the "git describe" output for that refname to the tar. This lets you say
5 # "cat .GITOLITE-VERSION" to find out which ref produced this tar
6
7 # Note: I'm not sure if that "-r" is a GNU tar extension...
8
fbe785a @sitaramc Makefile: now default is as simple as "make"
authored
9 branch := $(shell git rev-parse --abbrev-ref HEAD)
10
11 $(branch): $(branch).tar
12
4879a03 Makefile wraps "git archive" to record "git describe" output in tar
Sitaram Chamarty authored
13 .GITOLITE-VERSION:
06d8ab4 make VERSION work in both types of setups
Sitaram Chamarty authored
14 @touch conf/VERSION
4879a03 Makefile wraps "git archive" to record "git describe" output in tar
Sitaram Chamarty authored
15
16 %.tar: .GITOLITE-VERSION
06d8ab4 make VERSION work in both types of setups
Sitaram Chamarty authored
17 git describe --tags --long $* > conf/VERSION
4879a03 Makefile wraps "git archive" to record "git describe" output in tar
Sitaram Chamarty authored
18 git archive $* > $@
06d8ab4 make VERSION work in both types of setups
Sitaram Chamarty authored
19 tar -r -f $@ conf/VERSION
20 rm conf/VERSION
fbe785a @sitaramc Makefile: now default is as simple as "make"
authored
21 cp -v $@ /tmp
Something went wrong with that request. Please try again.