1
- ifeq ($(PLATFORM ) ,msys2)
2
- HOSTNAME = $(COMPUTERNAME )
3
- else
4
- ifeq ($(PLATFORM ) ,solaris)
5
- HOSTNAME = $(shell hostname | sed 's@\..* @@')
6
- else
7
- HOSTNAME = $(shell hostname -s)
8
- endif
9
- endif
10
-
11
1
READY_DEPS = $(foreach DEP,\
12
2
$(filter $(RABBITMQ_COMPONENTS ) ,$(DEPS ) $(BUILD_DEPS ) $(TEST_DEPS ) ) , \
13
3
$(if $(wildcard $(DEPS_DIR ) /$(DEP ) ) ,$(DEP ) ,) )
@@ -26,48 +16,3 @@ update-contributor-code-of-conduct:
26
16
27
17
# We need to provide a repo mapping for deps resolved via git_rmq fetch method
28
18
query_repo_git_rmq = https://github.com/rabbitmq/$(call rmq_cmp_repo_name,$(1 ) )
29
-
30
- # --------------------------------------------------------------------
31
- # Common test logs compression.
32
- # --------------------------------------------------------------------
33
-
34
- .PHONY : ct-logs-archive clean-ct-logs-archive
35
-
36
- ifneq ($(wildcard logs/* ) ,)
37
- TAR := tar
38
- ifeq ($(PLATFORM ) ,freebsd)
39
- TAR := gtar
40
- endif
41
- ifeq ($(PLATFORM ) ,darwin)
42
- TAR := gtar
43
- endif
44
-
45
- CT_LOGS_ARCHIVE ?= $(PROJECT ) -ct-logs-$(subst _,-,$(subst -,,$(subst .,,$(patsubst ct_run.ct_$(PROJECT ) @$(HOSTNAME ) .% ,% ,$(notdir $(lastword $(wildcard logs/ct_run.* ) ) ) ) ) ) ) .tar.xz
46
-
47
- ifeq ($(patsubst % .tar.xz,% ,$(CT_LOGS_ARCHIVE ) ) ,$(CT_LOGS_ARCHIVE ) )
48
- $(error CT_LOGS_ARCHIVE file must use '.tar.xz' as its filename extension)
49
- endif
50
-
51
- ct-logs-archive : $(CT_LOGS_ARCHIVE )
52
- @:
53
-
54
- $(CT_LOGS_ARCHIVE ) :
55
- $(gen_verbose ) \
56
- for file in logs/* ; do \
57
- ! test -L " $$ file" || rm " $$ file" ; \
58
- done
59
- $(verbose ) \
60
- $(TAR ) -c \
61
- --exclude " */mnesia" \
62
- --transform " s/^logs/$( patsubst %.tar.xz,%,$( notdir $( CT_LOGS_ARCHIVE) ) ) /" \
63
- -f - logs | \
64
- xz > "$@"
65
- else
66
- ct-logs-archive :
67
- @:
68
- endif
69
-
70
- clean-ct-logs-archive ::
71
- $(gen_verbose ) rm -f $(PROJECT ) -ct-logs-* .tar.xz
72
-
73
- clean :: clean-ct-logs-archive
0 commit comments