summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2008-10-30 13:53:54 +0000
committerTony Garnock-Jones <tonyg@lshift.net>2008-10-30 13:53:54 +0000
commit6a5a9f667bb30b98c3b834c2882e8d9c51c0260e (patch)
tree9ec957eebcfb60871f68247aee754e2e8bcb4a6f /packaging
parentc1374a89f7bd37478b80e2ec558288d458c28563 (diff)
parent50a0752fb10922db34b17d3d1f499ca80c95329b (diff)
downloadrabbitmq-server-git-6a5a9f667bb30b98c3b834c2882e8d9c51c0260e.tar.gz
merged default into bug19250
Diffstat (limited to 'packaging')
-rw-r--r--packaging/debs/Debian/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/debs/Debian/Makefile b/packaging/debs/Debian/Makefile
index dd74c31ea1..3e74cb5231 100644
--- a/packaging/debs/Debian/Makefile
+++ b/packaging/debs/Debian/Makefile
@@ -1,5 +1,6 @@
TARBALL_DIR=../../../dist
TARBALL=$(shell (cd $(TARBALL_DIR); echo rabbitmq-server-[0-9]*.tar.gz))
+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')
UNPACKED_DIR=rabbitmq-server-$(VERSION)
PACKAGENAME=rabbitmq-server
@@ -16,7 +17,8 @@ all:
package: clean
make -C ../.. check_tools
- tar -zxvf $(TARBALL_DIR)/$(TARBALL)
+ cp $(TARBALL_DIR)/$(TARBALL) $(DEBIAN_ORIG_TARBALL)
+ tar -zxvf $(DEBIAN_ORIG_TARBALL)
cp -r debian $(UNPACKED_DIR)
chmod a+x $(UNPACKED_DIR)/debian/rules
UNOFFICIAL_RELEASE=$(UNOFFICIAL_RELEASE) VERSION=$(VERSION) ./check-changelog.sh rabbitmq-server $(UNPACKED_DIR)