forked from pplu/aws-sdk-perl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 1.26 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
test:
carton exec -- prove -v -I lib -I auto-lib t/
cover:
cover -delete
HARNESS_PERL_SWITCHES=-MDevel::Cover make test
cover
pull-other-sdks:
git submodule init
git submodule update
cd botocore && git checkout develop
cd botocore && git remote add boto https://github.com/boto/botocore.git
pull-boto-develop:
cd botocore && git pull boto develop
gen-paws:
ONLY_PAWS=1 carton exec ./gen_classes.pl
gen-classes:
mkdir auto-lib/Paws/DeleteMe
rm -r auto-lib/Paws/*
./gen_classes.pl
copy-tests:
cp botocore/tests/unit/response_parsing/xml/responses/* t/10_responses/
rm t/10_responses/cloudfront-*
rm t/10_responses/*.json
./bin/xml2yaml.sh
numbers:
echo "Number of services" ; ls auto-lib/Paws/*.pm | wc -l
echo "Number of methods" ; grep "sub [A-Z]" auto-lib/Paws/*.pm | wc -l
echo "Number of IN/OUT objects" ; ls auto-lib/Paws/*/*.pm | wc -l
echo "Number of attributes" ; grep "has [A-Z]" auto-lib/Paws/*/*.pm | wc -l
echo "-----------"
echo "JSON" ; grep "::JsonCaller" auto-lib/Paws/*.pm | wc -l
echo "REST-JSON" ; grep "::RestJsonCaller" auto-lib/Paws/*.pm | wc -l
echo "Query" ; grep "::QueryCaller" auto-lib/Paws/*.pm | wc -l
echo "REST-XML" ; grep "::RestXML" auto-lib/Paws/*.pm | wc -l
echo "EC2Caller" ; grep "::EC2Caller" auto-lib/Paws/*.pm | wc -l