-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
155 lines (147 loc) · 7.47 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
APPCODE_DIR=~/Library/Application\ Support/JetBrains/AppCode2021.2templates
APPCODE_EAP_DIR=~/Library/Application\ Support/JetBrains/AppCode2021.3/templates
XCODE_DIR=~/Library/Developer/Xcode/UserData/CodeSnippets
OBJC-ACTION=5289C7C8-FE2F-499D-B5D6-51EBC21DD265.codesnippet
OBJC-ASSERT-NOT-NIL=AD8E2E8A-FB41-4F25-BFAE-CF8D9BC81005.codesnippet
OBJC-DISABLE=D2FED1BF-CAFA-4DD9-92CA-F5AA16B80CE8.codesnippet
OBJC-OUTLET-STRONG=B458146A-937C-4B33-96C8-34BE8B9B0CBE.codesnippet
OBJC-OUTLET-WEAK=871F3ACE-BE01-426B-8E75-7ED8B6C04CE2.codesnippet
OBJC-PROP-ASSIGN=9C79A834-2411-4227-B70F-63D2807D29B8.codesnippet
OBJC-PROP-COPY=34BC794F-28F4-48E9-A86D-44C3013DE167.codesnippet
OBJC-PROP-STRONG=718740CD-AF47-4C93-8B58-C9D8F58B1330.codesnippet
OBJC-PROP-WEAK=810AEB15-97CF-4207-8B2E-CC3FAFC60EFE.codesnippet
OBJC-SETUP=4DA65AE7-2FD0-4F79-842B-14FBB42E31D2.codesnippet
OBJC-TEARDOWN=9C175617-CE05-4BCA-848D-C4E4DAC19851.codesnippet
OBJC-TEST=96593CA0-9F64-4AAC-BAD0-1E77F6120775.codesnippet
OBJC-TEST-BUTTON-TAP=18223ADD-B041-4423-9E3E-D2C0DBB1901C.codesnippet
OBJC-TEST-OUTLETS-XCTEST=207F6BE9-A615-4FEB-BD8C-E948CEE6C4D3.codesnippet
OBJC-VC-STORYBOARD=E6B83DA8-044F-4444-9680-ED17BFC510D4.codesnippet
OBJC-WEAKSELF=042C6FCB-ABA2-4E9C-BB5A-AA75873428C6.codesnippet
SWIFT-ACTION=44FEAD39-88D7-4737-A1F0-720CE9551AAA.codesnippet
SWIFT-ASSERT-NOT-NIL=FA96F70D-D67E-4A28-BD8F-D8052BE79295.codesnippet
SWIFT-DISABLE=5E799350-10CC-48DB-9869-153A0C538835.codesnippet
SWIFT-INIT-CODER=99C12B2B-BCAF-4FB2-9794-298AF322F881.codesnippet
SWIFT-OUTLET-STRONG=10B7562A-E447-4BBD-B915-BA4A245D0CC0.codesnippet
SWIFT-OUTLET-WEAK=18BB4F7C-EEDD-4D2C-A3FC-2B24B5C6884C.codesnippet
SWIFT-SETUP=5E78D7DD-8C2E-413C-A862-7A271032E2C3.codesnippet
SWIFT-SETUPWITHERROR=D7DBECAE-93C1-43BD-BA84-A8B010DF3802.codesnippet
SWIFT-TEARDOWN=8F201B36-4605-4A0F-8B39-77BF98DA2022.codesnippet
SWIFT-TEARDOWNWITHERROR=EBD7E8AA-A3FF-494A-AEBE-19B4269D822F.codesnippet
SWIFT-TEST=CC9D1C30-80C2-4B63-BCD9-A7ECFE8B4C7C.codesnippet
SWIFT-TEST-HELPER=61A1BBA8-5BEC-4120-BD59-69B01861395E.codesnippet
SWIFT-TEST-BUTTON-TAP=F1324E28-76A4-42A1-B262-C184E2338FA9.codesnippet
SWIFT-TEST-OUTLETS=4F44FD1F-EF30-4B4D-9A32-E8E88F0E0F7D.codesnippet
SWIFT-VC-STORYBOARD=2E02A5A5-4A09-41FE-AD39-BB7B14497248.codesnippet
SWIFT-VC-STORYBOARD-IOS12=56942759-3246-402E-80A7-41B96DECE381.codesnippet
# Obsolete templates to remove
OBJC-HAMCREST=D3B7BE53-9A14-42F8-94D9-6B273C29B338.codesnippet
OBJC-HAMCRESTIOS=D67E10C5-67EF-46D8-8335-5B5DEA875BCF.codesnippet
OBJC-MOCKITO=CF8330B7-AA6D-48C7-96AD-20F7C943B51B.codesnippet
OBJC-MOCKITOIOS=1C2FBA6C-FA44-4408-AE45-F6071D31F4FA.codesnippet
OBJC-TESTBUTTON=17D94DE5-BC5B-49F6-9697-E1D2FE4A354B.codesnippet
OBJC-TESTBUTTONX=0B5D7000-ED3F-4C62-90E3-7B897CD86C22.codesnippet
OBJC-TEST-OUTLETS-HAMCREST=05CE602B-A281-4B4C-80A2-4F3A9C4E6902.codesnippet
SWIFT-HAMCREST=F84E5B11-7D6C-4F23-9170-5FA872506409.codesnippet
SWIFT-TESTBUTTON=F3D31848-0A09-46A0-82F0-6C711DC24AC2.codesnippet
SWIFT-TESTBUTTONX=6B5EBB0D-0A1D-4CF8-8D1A-16559243E451.codesnippet
SWIFT-TESTOUTLET=86E5626A-7AAE-4045-A801-7E3B21BEFDAE.codesnippet
SWIFT-UNOWNEDSELF=8E68F0B3-D8AE-42CD-8E5E-4874DBE4C57F.codesnippet
SWIFT-WEAKSELF=6DF0CD96-11EC-446D-B9DB-F161B2450DF6.codesnippet
remove-obsolete-appcode:
rm -f $(APPCODE_DIR)/qualitycoding_org.xml
rm -f $(APPCODE_DIR)/qualitycoding_org-ObjC.xml
rm -f $(APPCODE_DIR)/qualitycoding_org-Swift.xml
install-appcode: remove-obsolete-appcode
mkdir -p $(APPCODE_DIR)
cp AppCodeTemplates/qualitycoding_org\ Objective-C.xml $(APPCODE_DIR)
cp AppCodeTemplates/qualitycoding_org\ Swift.xml $(APPCODE_DIR)
mkdir -p $(APPCODE_EAP_DIR)
cp AppCodeTemplates/qualitycoding_org\ Objective-C.xml $(APPCODE_EAP_DIR)
cp AppCodeTemplates/qualitycoding_org\ Swift.xml $(APPCODE_EAP_DIR)
uninstall-appcode: remove-obsolete-appcode
rm -f $(APPCODE_DIR)/qualitycoding_org\ Objective-C.xml
rm -f $(APPCODE_DIR)/qualitycoding_org\ Swift.xml
rm -f $(APPCODE_EAP_DIR)/qualitycoding_org\ Objective-C.xml
rm -f $(APPCODE_EAP_DIR)/qualitycoding_org\ Swift.xml
remove-obsolete-xcode:
rm -f $(XCODE_DIR)/$(OBJC-HAMCREST)
rm -f $(XCODE_DIR)/$(OBJC-HAMCRESTIOS)
rm -f $(XCODE_DIR)/$(OBJC-MOCKITO)
rm -f $(XCODE_DIR)/$(OBJC-MOCKITOIOS)
rm -f $(XCODE_DIR)/$(OBJC-TESTBUTTON)
rm -f $(XCODE_DIR)/$(OBJC-TESTBUTTONX)
rm -f $(XCODE_DIR)/$(OBJC-TEST-OUTLETS-HAMCREST)
rm -f $(XCODE_DIR)/$(SWIFT-HAMCREST)
rm -f $(XCODE_DIR)/$(SWIFT-TESTBUTTON)
rm -f $(XCODE_DIR)/$(SWIFT-TESTBUTTONX)
rm -f $(XCODE_DIR)/$(SWIFT-TESTOUTLET)
rm -f $(XCODE_DIR)/$(SWIFT-UNOWNEDSELF)
rm -f $(XCODE_DIR)/$(SWIFT-WEAKSELF)
install-xcode: remove-obsolete-xcode
mkdir -p $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-ACTION) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-ASSERT-NOT-NIL) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-DISABLE) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-OUTLET-STRONG) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-OUTLET-WEAK) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-PROP-ASSIGN) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-PROP-COPY) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-PROP-STRONG) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-PROP-WEAK) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-SETUP) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-TEARDOWN) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-TEST) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-TEST-BUTTON-TAP) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-TEST-OUTLETS-XCTEST) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-VC-STORYBOARD) $(XCODE_DIR)
cp XCodeSnippets/$(OBJC-WEAKSELF) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-ACTION) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-ASSERT-NOT-NIL) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-DISABLE) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-INIT-CODER) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-OUTLET-STRONG) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-OUTLET-WEAK) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-SETUP) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-SETUPWITHERROR) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-TEARDOWN) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-TEARDOWNWITHERROR) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-TEST) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-TEST-HELPER) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-TEST-BUTTON-TAP) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-TEST-OUTLETS) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-VC-STORYBOARD) $(XCODE_DIR)
cp XCodeSnippets/$(SWIFT-VC-STORYBOARD-IOS12) $(XCODE_DIR)
uninstall-xcode: remove-obsolete-xcode
rm -f $(XCODE_DIR)/$(OBJC-ACTION)
rm -f $(XCODE_DIR)/$(OBJC-ASSERT-NOT-NIL)
rm -f $(XCODE_DIR)/$(OBJC-DISABLE)
rm -f $(XCODE_DIR)/$(OBJC-OUTLET-STRONG)
rm -f $(XCODE_DIR)/$(OBJC-OUTLET-WEAK)
rm -f $(XCODE_DIR)/$(OBJC-PROP-ASSIGN)
rm -f $(XCODE_DIR)/$(OBJC-PROP-COPY)
rm -f $(XCODE_DIR)/$(OBJC-PROP-STRONG)
rm -f $(XCODE_DIR)/$(OBJC-PROP-WEAK)
rm -f $(XCODE_DIR)/$(OBJC-SETUP)
rm -f $(XCODE_DIR)/$(OBJC-TEARDOWN)
rm -f $(XCODE_DIR)/$(OBJC-TEST)
rm -f $(XCODE_DIR)/$(OBJC-TEST-BUTTON-TAP)
rm -f $(XCODE_DIR)/$(OBJC-TEST-OUTLETS-HAMCREST)
rm -f $(XCODE_DIR)/$(OBJC-TEST-OUTLETS-XCTEST)
rm -f $(XCODE_DIR)/$(OBJC-VC-STORYBOARD)
rm -f $(XCODE_DIR)/$(OBJC-WEAKSELF)
rm -f $(XCODE_DIR)/$(SWIFT-ACTION)
rm -f $(XCODE_DIR)/$(SWIFT-DISABLE)
rm -f $(XCODE_DIR)/$(SWIFT-ASSERT-NOT-NIL)
rm -f $(XCODE_DIR)/$(SWIFT-INIT-CODER)
rm -f $(XCODE_DIR)/$(SWIFT-OUTLET-STRONG)
rm -f $(XCODE_DIR)/$(SWIFT-OUTLET-WEAK)
rm -f $(XCODE_DIR)/$(SWIFT-SETUP)
rm -f $(XCODE_DIR)/$(SWIFT-SETUPWITHERROR)
rm -f $(XCODE_DIR)/$(SWIFT-TEARDOWN)
rm -f $(XCODE_DIR)/$(SWIFT-TEARDOWNWITHERROR)
rm -f $(XCODE_DIR)/$(SWIFT-TEST)
rm -f $(XCODE_DIR)/$(SWIFT-TEST-HELPER)
rm -f $(XCODE_DIR)/$(SWIFT-TEST-BUTTON-TAP)
rm -f $(XCODE_DIR)/$(SWIFT-TEST-OUTLETS)
rm -f $(XCODE_DIR)/$(SWIFT-VC-STORYBOARD)
rm -f $(XCODE_DIR)/$(SWIFT-VC-STORYBOARD-IOS12)