forked from aws/aws-encryption-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathduvet_report.sh
More file actions
executable file
·30 lines (24 loc) · 839 Bytes
/
Copy pathduvet_report.sh
File metadata and controls
executable file
·30 lines (24 loc) · 839 Bytes
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
#!/bin/sh
SPEC_ROOT=aws-encryption-sdk-specification
# As we make the duvet framework more robust this logic around extracting and rebuilding
# will probably change. For now, do something simple to unblock ourselves.
REBUILD=false
if [ ! -z $1 ] && [ $1 == "rebuild" ] ; then
echo "Re-extracting spec because it was explicitly requested"
REBUILD=true
fi
if [ ! -d $SPEC_ROOT/compliance ] ; then
echo "Compliance directory missing, extracting spec"
REBUILD=true
fi
if [ $REBUILD == "true" ] ; then
cd aws-encryption-sdk-specification
./util/specification_extract.sh
cd ..
fi
$SPEC_ROOT/util/report.js \
$(find src -name '*.dfy') \
$(find test -name '*.dfy') \
$(find aws-encryption-sdk-net/Source -name '*.cs') \
$(find aws-encryption-sdk-net/Test -name '*.cs') \
$(find compliance_exceptions -name '*.txt')