summaryrefslogtreecommitdiff
path: root/packaging/debs
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2009-08-11 12:28:26 +0100
committerDavid Wragg <dpw@lshift.net>2009-08-11 12:28:26 +0100
commit9a1638d580d25d5a68d06fb67aa8776d7aa0aaf9 (patch)
tree2465ebdd23daad5129e6236f75dd948c2aeb47db /packaging/debs
parent852d8cf253378cd965a6b0ed4dc295e2b0afb59c (diff)
downloadrabbitmq-server-git-9a1638d580d25d5a68d06fb67aa8776d7aa0aaf9.tar.gz
Reconcile the Deian and Fedora package Makefiles a little
The Debian package makefile has the useful feature that, if VERSION is not provided, it will guess the value from the source tarball file name. Make the Fedora Makefile do the same, and adapt the common code to use make-builtins rather than $(shell ...) commands where possible.
Diffstat (limited to 'packaging/debs')
-rw-r--r--packaging/debs/Debian/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/debs/Debian/Makefile b/packaging/debs/Debian/Makefile
index 67fabae0aa..7ab8b659e7 100644
--- a/packaging/debs/Debian/Makefile
+++ b/packaging/debs/Debian/Makefile
@@ -1,8 +1,9 @@
TARBALL_DIR=../../../dist
-TARBALL=$(shell (cd $(TARBALL_DIR); echo rabbitmq-server-[0-9]*.tar.gz))
+TARBALL=$(notdir $(wildcard $(TARBALL_DIR)/rabbitmq-server-[0-9.]*.tar.gz))
COMMON_DIR=../../common
-DEBIAN_ORIG_TARBALL=$(shell echo $(TARBALL) | sed -e 's:\(.*\)-\(.*\)\(\.tar\.gz\):\1_\2\.orig\3:g')
VERSION=$(shell echo $(TARBALL) | sed -e 's:rabbitmq-server-\(.*\)\.tar\.gz:\1:g')
+
+DEBIAN_ORIG_TARBALL=$(shell echo $(TARBALL) | sed -e 's:\(.*\)-\(.*\)\(\.tar\.gz\):\1_\2\.orig\3:g')
UNPACKED_DIR=rabbitmq-server-$(VERSION)
PACKAGENAME=rabbitmq-server
SIGNING_KEY_ID=056E8E56