summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-10-10 12:46:56 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-10-10 12:46:56 +0100
commit3fa7022eaafc89c1aad1cfee949fe91466d3e9b3 (patch)
tree686a0792979c3f7926351df15f9290cb64c60b39 /Makefile
parent95ca04683f0f6ed406c60d308e366d6f7a6fdfea (diff)
downloadrabbitmq-server-3fa7022eaafc89c1aad1cfee949fe91466d3e9b3.tar.gz
generate release LICENSE file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0e19f0cd..fd119edd 100644
--- a/Makefile
+++ b/Makefile
@@ -262,10 +262,13 @@ srcdist: distclean
chmod 0755 $(TARGET_SRC_DIR)/scripts/*
ifneq "$(PLUGINS_SRC_DIR)" ""
- ln -s $(PLUGINS_SRC_DIR) $(TARGET_SRC_DIR)/plugins-src
- cp packaging/common/LICENSE $(TARGET_SRC_DIR)
- echo $(PLUGINS_SRC_DIR)
- cp -n $(shell find $(PLUGINS_SRC_DIR) -name "LICENSE-*") $(TARGET_SRC_DIR)
+ cp -r $(PLUGINS_SRC_DIR) $(TARGET_SRC_DIR)/plugins-src
+ rm $(TARGET_SRC_DIR)/LICENSE
+ cat packaging/common/LICENSE.head >> $(TARGET_SRC_DIR)/LICENSE
+ find $(PLUGINS_SRC_DIR)/licensing -name "license_info_*" -exec cat '{}' >> $(TARGET_SRC_DIR)/LICENSE \;
+ cat packaging/common/LICENSE.tail >> $(TARGET_SRC_DIR)/LICENSE
+ find $(PLUGINS_SRC_DIR)/licensing -name "LICENSE-*" -exec cp '{}' $(TARGET_SRC_DIR) \;
+ rm -rf $(TARGET_SRC_DIR)/licensing
else
@echo No plugins source distribution found
endif