summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-01-10 18:23:48 +0000
committerEmile Joubert <emile@rabbitmq.com>2011-01-10 18:23:48 +0000
commit9263488208bfddda34508ae4bdc708f488ac60e6 (patch)
tree9d23ff326e78b420fbec698f0d23721b65603946
parent91c02ce7f181d6edb8f3c40fcc25bc55c3b1bc29 (diff)
downloadrabbitmq-server-bug23079.tar.gz
Avoid images and forms in text retrieved from websitebug23079
-rw-r--r--INSTALL.in7
-rw-r--r--Makefile10
-rw-r--r--README.in7
3 files changed, 13 insertions, 11 deletions
diff --git a/INSTALL.in b/INSTALL.in
index d1fa81df..d2652eaa 100644
--- a/INSTALL.in
+++ b/INSTALL.in
@@ -1,10 +1,9 @@
-Please see http://www.rabbitmq.com/install.html for install
+Please see http://www.rabbitmq.com/install.html for install
instructions.
-For your convenience, a text copy of these instructions is available
-below. Please be aware that the instructions here may not be as up to
+For your convenience, a text copy of these instructions is available
+below. Please be aware that the instructions here may not be as up to
date as those at the above URL.
===========================================================================
-
diff --git a/Makefile b/Makefile
index 00bfd629..966529a0 100644
--- a/Makefile
+++ b/Makefile
@@ -209,10 +209,14 @@ srcdist: distclean
mkdir -p $(TARGET_SRC_DIR)/codegen
cp -r ebin src include LICENSE LICENSE-MPL-RabbitMQ $(TARGET_SRC_DIR)
cp INSTALL.in $(TARGET_SRC_DIR)/INSTALL
- elinks -dump -no-references -no-numbering $(WEB_URL)install.html \
- >> $(TARGET_SRC_DIR)/INSTALL
+ elinks -source $(WEB_URL)install.html \
+ | xmlstarlet ed -N "x=http://www.w3.org/1999/xhtml" -d "//x:img" -d "//x:form" \
+ | elinks -dump -no-references -no-numbering \
+ >> $(TARGET_SRC_DIR)/INSTALL
cp README.in $(TARGET_SRC_DIR)/README
- elinks -dump -no-references -no-numbering $(WEB_URL)build-server.html \
+ elinks -source $(WEB_URL)build-server.html \
+ | xmlstarlet ed -N "x=http://www.w3.org/1999/xhtml" -d "//x:img" -d "//x:form" \
+ | elinks -dump -no-references -no-numbering \
>> $(TARGET_SRC_DIR)/README
sed -i.save 's/%%VSN%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit_app.in && rm -f $(TARGET_SRC_DIR)/ebin/rabbit_app.in.save
diff --git a/README.in b/README.in
index 0e70d0e7..58d3709f 100644
--- a/README.in
+++ b/README.in
@@ -1,10 +1,9 @@
-Please see http://www.rabbitmq.com/build-server.html for build
+Please see http://www.rabbitmq.com/build-server.html for build
instructions.
-For your convenience, a text copy of these instructions is available
-below. Please be aware that the instructions here may not be as up to
+For your convenience, a text copy of these instructions is available
+below. Please be aware that the instructions here may not be as up to
date as those at the above URL.
===========================================================================
-