components/rabbitmq/patches/makefile.patch
changeset 5405 66fd59fecd68
child 5776 f6fa335ae47b
equal deleted inserted replaced
5404:55e409ba4e72 5405:66fd59fecd68
       
     1 In-house patch to use supported sed flags and to remove gzipping of man pages
       
     2 
       
     3 --- rabbitmq-server-3.5.6/Makefile.orig  2015-11-09 11:32:32.297343560 -0700
       
     4 +++ rabbitmq-server-3.5.6/Makefile    2015-11-09 11:33:27.169056719 -0700
       
     5 @@ -75,7 +75,7 @@ $(shell awk 'BEGIN {
       
     6  }')
       
     7  endef
       
     8 
       
     9 -ERTS_VER = $(shell erl -version 2>&1 | sed -E 's/.* version //')
       
    10 +ERTS_VER = $(shell erl -version 2>&1 | sed -e 's/.* version //')
       
    11  USE_SPECS_MIN_ERTS_VER = 5.11
       
    12  ifeq ($(call compare_version,$(ERTS_VER),$(USE_SPECS_MIN_ERTS_VER),>=),true)
       
    13  ERLC_OPTS += -Duse_specs
       
    14 @@ -348,8 +348,7 @@ distclean: clean
       
    15  %.gz: %.xml $(DOCS_DIR)/examples-to-end.xsl
       
    16 	xmlto --version | grep -E '^xmlto version 0\.0\.([0-9]|1[1-8])$$' >/dev/null || opt='--stringparam man.indent.verbatims=0' ; \
       
    17 	    xsltproc --novalid $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \
       
    18 -	    xmlto -o $(DOCS_DIR) $$opt man $<.tmp && \
       
    19 -	    gzip -f $(DOCS_DIR)/`basename $< .xml`
       
    20 +	    xmlto -o $(DOCS_DIR) $$opt man $<.tmp
       
    21 	rm -f $<.tmp
       
    22 
       
    23  # Use tmp files rather than a pipeline so that we get meaningful errors
       
    24 @@ -393,7 +392,7 @@ install_bin: all install_dirs
       
    25  install_docs: docs_all install_dirs
       
    26 	for section in 1 5; do \
       
    27 		mkdir -p $(MAN_DIR)/man$$section; \
       
    28 -		for manpage in $(DOCS_DIR)/*.$$section.gz; do \
       
    29 +		for manpage in $(DOCS_DIR)/*.$$section; do \
       
    30 			cp $$manpage $(MAN_DIR)/man$$section; \
       
    31 		done; \
       
    32 	done