summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLars Müller2006-08-25 16:36:42 +0200
committerLars Müller2006-08-25 16:36:42 +0200
commitaaef8c2b42445e9dfebc9c77194d9f95977cebc1 (patch)
treedcce3425dd13e4598beed50247275bca5df5ee3c /Makefile
parentAdd clean rule. (diff)
downloadcore-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--Makefile7
1 files changed, 6 insertions, 1 deletions
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 \