@@ -13,10 +13,10 @@ endef
13
13
14
14
define PROJECT_APP_EXTRA_KEYS
15
15
%% Hex.pm package informations.
16
- {licenses, ["MPL 2.0"]},
16
+ {licenses, ["MPL- 2.0"]},
17
17
{links, [
18
18
{"Website", "https://www.rabbitmq.com/"},
19
- {"GitHub", "https://github.com/rabbitmq/rabbitmq-erlang-client "},
19
+ {"GitHub", "https://github.com/rabbitmq/rabbitmq-server/deps/amqp_client "},
20
20
{"User guide", "https://www.rabbitmq.com/erlang-client-user-guide.html"}
21
21
]},
22
22
{build_tools, ["make", "rebar3"]},
@@ -52,147 +52,3 @@ WITHOUT = plugins/proper
52
52
53
53
include ../../rabbitmq-components.mk
54
54
include ../../erlang.mk
55
-
56
- # --------------------------------------------------------------------
57
- # Distribution.
58
- # --------------------------------------------------------------------
59
-
60
- .PHONY : distribution
61
-
62
- distribution : docs source-dist package
63
-
64
- docs :: edoc
65
- edoc : doc/overview.edoc
66
-
67
- doc/overview.edoc : src/overview.edoc.in
68
- mkdir -p doc
69
- sed -e ' s:%%VERSION%%:$(PROJECT_VERSION):g' < $< > $@
70
-
71
- .PHONY : source-dist clean-source-dist
72
-
73
- SOURCE_DIST_BASE ?= $(PROJECT )
74
- SOURCE_DIST_SUFFIXES ?= tar.xz zip
75
- SOURCE_DIST ?= $(PACKAGES_DIR ) /$(SOURCE_DIST_BASE ) -$(PROJECT_VERSION ) -src
76
-
77
- # The first source distribution file is used by packages: if the archive
78
- # type changes, you must update all packages' Makefile.
79
- SOURCE_DIST_FILES = $(addprefix $(SOURCE_DIST ) .,$(SOURCE_DIST_SUFFIXES ) )
80
-
81
- .PHONY : $(SOURCE_DIST_FILES )
82
-
83
- source-dist : $(SOURCE_DIST_FILES )
84
- @:
85
-
86
- RSYNC ?= rsync
87
- RSYNC_V_0 =
88
- RSYNC_V_1 = -v
89
- RSYNC_V_2 = -v
90
- RSYNC_V = $(RSYNC_V_$(V ) )
91
- RSYNC_FLAGS += -a $(RSYNC_V ) \
92
- --exclude '.sw?' --exclude '.*.sw?' \
93
- --exclude '*.beam' \
94
- --exclude '*.d' \
95
- --exclude '*.pyc' \
96
- --exclude '.git*' \
97
- --exclude '.hg*' \
98
- --exclude '.travis.yml' \
99
- --exclude '.*.plt' \
100
- --exclude '$(notdir $(ERLANG_MK_TMP ) ) ' \
101
- --exclude 'cover/' \
102
- --exclude 'deps/' \
103
- --exclude 'ebin/' \
104
- --exclude 'erl_crash.dump' \
105
- --exclude '$(notdir $(DEPS_DIR ) ) /' \
106
- --exclude 'doc/' \
107
- --exclude 'hexer*' \
108
- --exclude 'logs/' \
109
- --exclude 'plugins/' \
110
- --exclude '$(notdir $(DIST_DIR ) ) /' \
111
- --exclude 'test' \
112
- --exclude 'xrefr' \
113
- --exclude '/$(notdir $(PACKAGES_DIR ) ) /' \
114
- --exclude '/PACKAGES/' \
115
- --delete \
116
- --delete-excluded
117
-
118
- TAR ?= tar
119
- TAR_V_0 =
120
- TAR_V_1 = -v
121
- TAR_V_2 = -v
122
- TAR_V = $(TAR_V_$(V ) )
123
-
124
- GZIP ?= gzip
125
- BZIP2 ?= bzip2
126
- XZ ?= xz
127
-
128
- ZIP ?= zip
129
- ZIP_V_0 = -q
130
- ZIP_V_1 =
131
- ZIP_V_2 =
132
- ZIP_V = $(ZIP_V_$(V ) )
133
-
134
- .PHONY : $(SOURCE_DIST )
135
-
136
- $(SOURCE_DIST ) : $(ERLANG_MK_RECURSIVE_DEPS_LIST )
137
- $(verbose ) mkdir -p $(dir $@ )
138
- $(gen_verbose ) $(RSYNC ) $(RSYNC_FLAGS ) ./ $@ /
139
- $(verbose ) echo " $( PROJECT_DESCRIPTION) $( PROJECT_VERSION) " > $@ /git-revisions.txt
140
- $(verbose ) echo " $( PROJECT) $$ (git rev-parse HEAD) $$ (git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)" >> $@ /git-revisions.txt
141
- $(verbose ) for dep in $$ (cat $( ERLANG_MK_RECURSIVE_DEPS_LIST) | grep -v ' /$(PROJECT)$$' | LC_COLLATE=C sort); do \
142
- $(RSYNC ) $(RSYNC_FLAGS ) \
143
- $$ dep \
144
- $@ /deps; \
145
- if test -f $@ /deps/$$ (basename $$ dep)/erlang.mk && \
146
- test " $$ (wc -l $@ /deps/$$ (basename $$ dep)/erlang.mk | awk '{print $$ 1;}')" = " 1" && \
147
- grep -qs -E " ^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk)$$ " $@ /deps/$$(basename $$dep) /erlang.mk; then \
148
- echo " include ../../erlang.mk" > $@ /deps/$$(basename $$dep) /erlang.mk; \
149
- fi ; \
150
- sed -E -i.bak " s|^[[:blank:]]*include[[:blank:]]+\.\./.*erlang.mk$$ |include ../../erlang.mk|" \
151
- $@ /deps/$$(basename $$dep) /Makefile && \
152
- rm $@ /deps/$$(basename $$dep) /Makefile.bak; \
153
- (cd $$ dep; echo " $$ (basename " $$ dep" ) $$ (git rev-parse HEAD) $$ (git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)" ) >> $@ /git-revisions.txt; \
154
- done
155
- $(verbose ) for file in $$ (find $@ -name ' *.app.src' ); do \
156
- sed -E -i.bak \
157
- -e ' s/[{]vsn[[:blank:]]*,[[:blank:]]*(""|"0.0.0")[[:blank:]]*}/{vsn, "$(PROJECT_VERSION)"}/' \
158
- $$ file; \
159
- rm $$ file.bak; \
160
- done
161
- $(verbose ) rm $@ /README.in
162
- $(verbose ) cp README.in $@ /README
163
- $(verbose ) if test " $( BUILD_DOC) " ; then cat " $( BUILD_DOC) " >> $@ /README; fi
164
-
165
- # TODO: Fix file timestamps to have reproducible source archives.
166
- # $(verbose) find $@ -not -name 'git-revisions.txt' -print0 | xargs -0 touch -r $@/git-revisions.txt
167
-
168
- $(SOURCE_DIST ) .tar.gz : $(SOURCE_DIST )
169
- $(gen_verbose ) cd $(dir $(SOURCE_DIST ) ) && \
170
- find $(notdir $(SOURCE_DIST ) ) -print0 | LC_COLLATE=C sort -z | \
171
- xargs -0 $(TAR ) $(TAR_V ) --no-recursion -cf - | \
172
- $(GZIP ) --best > $@
173
-
174
- $(SOURCE_DIST ) .tar.bz2 : $(SOURCE_DIST )
175
- $(gen_verbose ) cd $(dir $(SOURCE_DIST ) ) && \
176
- find $(notdir $(SOURCE_DIST ) ) -print0 | LC_COLLATE=C sort -z | \
177
- xargs -0 $(TAR ) $(TAR_V ) --no-recursion -cf - | \
178
- $(BZIP2 ) > $@
179
-
180
- $(SOURCE_DIST ) .tar.xz : $(SOURCE_DIST )
181
- $(gen_verbose ) cd $(dir $(SOURCE_DIST ) ) && \
182
- find $(notdir $(SOURCE_DIST ) ) -print0 | LC_COLLATE=C sort -z | \
183
- xargs -0 $(TAR ) $(TAR_V ) --no-recursion -cf - | \
184
- $(XZ ) > $@
185
-
186
- $(SOURCE_DIST ) .zip : $(SOURCE_DIST )
187
- $(verbose ) rm -f $@
188
- $(gen_verbose ) cd $(dir $(SOURCE_DIST ) ) && \
189
- find $(notdir $(SOURCE_DIST ) ) -print0 | LC_COLLATE=C sort -z | \
190
- xargs -0 $(ZIP ) $(ZIP_V ) $@
191
-
192
- clean :: clean-source-dist
193
-
194
- clean-source-dist :
195
- $(gen_verbose ) rm -rf -- $(SOURCE_DIST_BASE ) -*
196
-
197
- package : dist
198
- cp $(DIST_DIR ) /* .ez $(PACKAGES_DIR )
0 commit comments