svn-Revisions-Ermittlung repariert - seit der svn-Erkennung klappte es nicht mehr
This commit is contained in:
parent
3b7bbdea55
commit
ceb9c946fd
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -1,9 +1,9 @@
|
|||
########## Variablendefinitionen ###########
|
||||
|
||||
# ist subversion verfuegbar?
|
||||
IS_SVN := $(shell test -d .svn && which svn && echo "yes")
|
||||
IS_SVN := $(shell test -d .svn && which svn >/dev/null && echo "yes")
|
||||
# Revisions-Variablen
|
||||
REVISIONS_NR := $(shell test "yes" = "$(IS_SVN)" && svn -R info | grep ^Revision | cut -f2 -d " " | sort | tail -1)
|
||||
REVISIONS_NR := $(shell test "yes" = "$(IS_SVN)" && svn -R info | grep ^Revision | cut -f2 -d " " | sort -n | tail -1)
|
||||
# kein svn vorhanden? also nehmen wir das heutige Datum
|
||||
REVISIONS_NR ?= $(shell date +%Y%m%d)
|
||||
REVISIONS_SUFFIX = _r$(REVISIONS_NR)
|
||||
|
|
Loading…
Reference in a new issue