diff options
author | Lars Müller | 2006-08-25 16:36:42 +0200 |
---|---|---|
committer | Lars Müller | 2006-08-25 16:36:42 +0200 |
commit | aaef8c2b42445e9dfebc9c77194d9f95977cebc1 (patch) | |
tree | dcce3425dd13e4598beed50247275bca5df5ee3c /Makefile | |
parent | Add clean rule. (diff) | |
download | core-aaef8c2b42445e9dfebc9c77194d9f95977cebc1.tar.gz core-aaef8c2b42445e9dfebc9c77194d9f95977cebc1.tar.xz core-aaef8c2b42445e9dfebc9c77194d9f95977cebc1.zip |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 \ |