Revision 6927
Added by Aaron Marcuse-Kubitza about 12 years ago
common.Makefile | ||
---|---|---|
63 | 63 |
# Revisions |
64 | 64 |
revision = $(shell svn info $(1)|$(sed) -n 's/^Last Changed Rev: (.*)$$/\1/p') |
65 | 65 |
rootRevision = $(call revision,$(root)) |
66 |
initRootRevision := $(if $(root),$(rootRevision)) |
|
67 |
rootRevisionsEqual := $(filter $(rootRevision),$(initRootRevision)) |
|
68 |
rootRevisions = $(foreach rootRevision,$(rootRevision),$(if\ |
|
69 |
$(rootRevisionsEqual),$(initRootRevision),$(initRootRevision)-$(rootRevision))) |
|
70 |
# only evaluate $(rootRevision) once |
|
71 |
version ?= $(date).r$(rootRevisions) |
|
66 |
version ?= r$(rootRevision) |
|
72 | 67 |
|
73 | 68 |
# rsync |
74 | 69 |
rsync* := "time" rsync$(if $(test), --dry-run) --archive --update --verbose\ |
Also available in: Unified diff
lib/common.Makefile: Revisions: $(version): Use just the revision # to avoid cluttering the schema and log file names with long datetime strings