diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-23 14:21:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-23 14:21:40 +0100 |
commit | 535ade0e56c99ac87782886395378eea92013c6f (patch) | |
tree | ff823ec7c77d0353591c4c044cd519ff821ad384 /Makefile | |
parent | fee24dc2b0f62103683e6ce242a44c7306a5fb1d (diff) |
Makefile: untar snapshot into named directory
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -29,16 +29,17 @@ RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/$(RELEASE_OR_SNAPSHOT)s RELEASE_URL_BASE = http://cairographics.org/$(RELEASE_OR_SNAPSHOT)s RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org -snapshots = snapshots -tar_file = $(snapshots)/cairo-traces-$(shell date '+%Y%m%d')-$(shell git rev-parse HEAD | cut -c 1-6).tar.gz -sha1_file = $(tar_file).sha1 -gpg_file = $(sha1_file).asc +snapshots := snapshots +snapshot_name := $(shell date '+%Y%m%d')-$(shell git rev-parse HEAD | cut -c 1-6) +tar_file := $(snapshots)/cairo-traces-$(snapshot_name).tar.gz +sha1_file := $(tar_file).sha1 +gpg_file := $(sha1_file).asc DIST := Makefile README $(wildcard *.c) $(ALL_LZMA) $(tar_file): $(DIST) @mkdir -p $(snapshots) @echo Generating snapshot tarball: $(tar_file) - @tar $(TAR_OPTIONS) --transform 's#^#cairo-traces/#' -czvf $(tar_file) $(DIST) + @tar $(TAR_OPTIONS) --transform 's#^#cairo-traces-$(snapshot_name)/#' -czvf $(tar_file) $(DIST) $(sha1_file): $(tar_file) sha1sum $^ > $@ |