summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLars Müller2006-08-25 14:50:02 +0200
committerLars Müller2006-08-25 14:50:02 +0200
commit3293734ffc8a8419d9a2415aa951acce2a567866 (patch)
tree116bc7ce23189d315789122d54b8ea7070e6b460 /Makefile
parentDon't include management-framework dir to tar ball. (diff)
downloadcore-3293734ffc8a8419d9a2415aa951acce2a567866.tar.gz
core-3293734ffc8a8419d9a2415aa951acce2a567866.tar.xz
core-3293734ffc8a8419d9a2415aa951acce2a567866.zip
Add VERSIONS file to define OPENSLX_VERSION_*.
Use OPENSLX_VERSION_STING in the Makefile. Ignore openslx-*.tar.bz2 file from svn. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@331 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 24 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cfa2522e..5938bb9f 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,30 @@
# (c) 2006 - OpenSLX.com
tarball:
- @echo "Creating tar ball "
- @tar cfhj openslx.tar.bz2 \
- --exclude-from=tools/tar_exclude_from \
- .
+ @. VERSIONS; \
+ echo "Creating OpenSLX $${OPENSLX_VERSION_STRING} tar ball "; \
+ if test -e "../openslx-$${OPENSLX_VERSION_STRING}" -a \
+ ! -L "../openslx-$${OPENSLX_VERSION_STRING}"; then \
+ echo "Error: ../openslx-$${OPENSLX_VERSION_STRING} exists and is not a sym link! "; \
+ exit 1; \
+ fi; \
+ svn_repo_name=$$( pwd); \
+ svn_repo_name="$${svn_repo_name##*/}"; \
+ if ! test -L "../openslx-$${OPENSLX_VERSION_STRING}"; then \
+ pushd .. >/dev/null; \
+ ln -s "$${svn_repo_name}" "openslx-$${OPENSLX_VERSION_STRING}"; \
+ popd >/dev/null; \
+ OPENSLX_SOURCEDIR_SYMLINK_CREATED="yes"; \
+ fi; \
+ pushd .. >/dev/null; \
+ tar cfhj \
+ "$${svn_repo_name}/openslx-$${OPENSLX_VERSION_STRING}.tar.bz2" \
+ --exclude-from="$${svn_repo_name}/tools/tar_exclude_from" \
+ "openslx-$${OPENSLX_VERSION_STRING}/"; \
+ test "$${OPENSLX_SOURCEDIR_SYMLINK_CREATED}" = "yes" && \
+ rm -f "openslx-$${OPENSLX_VERSION_STRING}"; \
+ popd >/dev/null
+
install:
@echo "Installing openslx.org project files"
@mkdir -p /var/lib/openslx/config/default/initramfs \