forked from ccouzens/vcloud-rest-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
98 lines (80 loc) · 3.63 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
specs = \
27.0.json \
29.0.json \
30.0.json \
31.0.json \
32.0.json \
33.0.json \
34.0.json \
35.0.json \
35.2.json \
36.0.json \
36.1.json \
36.2.json \
36.3.json \
37.0.json \
27.0.yml \
29.0.yml \
30.0.yml \
31.0.yml \
32.0.yml \
33.0.yml \
34.0.yml \
35.0.yml \
35.2.yml \
36.0.yml \
36.1.yml \
36.2.yml \
36.3.yml \
37.0.yml
.PHONY : all
all : $(specs)
website/27.0.zip:
mkdir -p $(dir $@)
curl https://vdc-repo.vmware.com/vmwb-repository/dcr-public/76f491b4-679c-4e1e-8428-f813d668297a/a2555a1b-22f1-4cca-b481-2a98ab874022/doc/a2555a1b-22f1-4cca-b481-2a98ab874022.zip > $@
website/29.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/ca48e1bb-282b-4fdc-b827-649b819249ed/55142cf1-5bb8-4ab1-8d09-b84f717af5ec/doc/55142cf1-5bb8-4ab1-8d09-b84f717af5ec.zip > $@
website/30.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/7a028e78-bd37-4a6a-8298-9c26c7eeb9aa/09142237-dd46-4dee-8326-e07212fb63a8/doc/09142237-dd46-4dee-8326-e07212fb63a8.zip > $@
website/31.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/f27d65ea-c25b-45ed-9193-c8cc77507622/9a1f04e3-359b-4a19-9c62-7c0fafdfeac8/doc/9a1f04e3-359b-4a19-9c62-7c0fafdfeac8.zip > $@
website/32.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/71e12563-bc11-4d64-821d-92d30f8fcfa1/7424bf8e-aec2-44ad-be7d-b98feda7bae0/doc/7424bf8e-aec2-44ad-be7d-b98feda7bae0.zip > $@
website/33.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/037ccaee-649a-417e-b365-1331034fb28d/1f0fd9eb-0238-4af6-89b5-7e6636f29c65/doc/1f0fd9eb-0238-4af6-89b5-7e6636f29c65.zip > $@
website/34.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/06a3b3da-4c6d-4984-b795-5d64081a4b10/8e47d46b-cfa7-4c06-8b81-4f5548da3102/doc/8e47d46b-cfa7-4c06-8b81-4f5548da3102.zip > $@
website/35.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/e5392f68-0310-4bb0-9622-52adfe664c4c/f4b08a32-8cbc-42a3-8a07-fba714d8d5d1/doc/f4b08a32-8cbc-42a3-8a07-fba714d8d5d1.zip > $@
website/35.2.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/ad96a8e3-043d-4e88-a0ba-87db0965b492/029c9ce7-e5fc-47c7-8003-f4bfa046e6db/doc/029c9ce7-e5fc-47c7-8003-f4bfa046e6db.zip > $@
website/36.0.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/4cb94d1d-d9d0-49cd-b6e5-f4edebaf6753/b83c6907-dc7e-4f3c-9bc5-4060ed512f49/doc/b83c6907-dc7e-4f3c-9bc5-4060ed512f49.zip > $@
website/36.1.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/84726741-c7a2-4445-80e6-f0f941e37595/e8d64305-2e69-45ac-bff5-8f98220c7891/doc/e8d64305-2e69-45ac-bff5-8f98220c7891.zip > $@
website/36.2.zip:
mkdir -p $(dir $@)
curl https://vdc-download.vmware.com/vmwb-repository/dcr-public/fd3d847b-e702-429f-80fa-e4bbbee25b06/d3bf90f6-56ae-49c5-8005-e068ff561aea/doc/d3bf90f6-56ae-49c5-8005-e068ff561aea.zip > $@
website/36.3.zip:
mkdir -p $(dir $@)
curl https://vdc-repo.vmware.com/vmwb-repository/dcr-public/4adeac16-da3e-4d8e-8a47-aa726a94e0cc/f5fab4aa-7340-4009-ae8c-d767ccc34d66/doc/f5fab4aa-7340-4009-ae8c-d767ccc34d66.zip > $@
website/37.0.zip:
mkdir -p $(dir $@)
curl https://vdc-repo.vmware.com/vmwb-repository/dcr-public/01bd0ac9-89fb-4136-9229-ba038efee2c0/fa523867-5496-4b27-b7ae-c6e0d1ed08ce/doc/fa523867-5496-4b27-b7ae-c6e0d1ed08ce.zip > $@
./%.json: website/%.zip
(cd transformer; RUST_LOG=transformer=debug cargo run --release) < $< > $@
./%.yml: ./%.json
yq -P '.' $< > $@
.PHONY : clean
clean :
rm -f *.json *.yml