From aaef8c2b42445e9dfebc9c77194d9f95977cebc1 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Fri, 25 Aug 2006 14:36:42 +0000 Subject: Append rev$( svnversion) to OPENSLX_VERSION_STRING if OPENSLX_SVN_SNAPSHOT is yes,y, or 1. This allows us to create a daily snapshot if the svn revision changes with a OPENSLX_SVN_SNAPSHOT=yes make tarball call. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@334 95ad53e4-c205-0410-b2fa-d234c58c8868 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f4b46d6f..dbc44047 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,12 @@ # (c) 2006 - OpenSLX.com tarball: - @. VERSIONS; \ + @OPENSLX_SVN_SNAPSHOT=$$( echo $${OPENSLX_SVN_SNAPSHOT} | \ + tr [:upper:] [:lower:]); \ + case "$${OPENSLX_SVN_SNAPSHOT}" in \ + yes|y|1) OPENSLX_VERSION_SVNREV=$$( svnversion) ;; \ + esac; \ + . VERSIONS; \ echo "Creating OpenSLX $${OPENSLX_VERSION_STRING} tar ball "; \ if test -e "../openslx-$${OPENSLX_VERSION_STRING}" -a \ ! -L "../openslx-$${OPENSLX_VERSION_STRING}"; then \ -- cgit v1.2.3-55-g7522