forked from OWASP/ASVS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate-all.sh
More file actions
36 lines (24 loc) · 1.04 KB
/
generate-all.sh
File metadata and controls
36 lines (24 loc) · 1.04 KB
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
#!/bin/bash
ALLOWED_LANGS='en'
echo $@
if [[ -n $@ ]]; then
LANGS=$@
else
LANGS=${ALLOWED_LANGS}
fi
for lang in ${LANGS}; do
if [[ " $ALLOWED_LANGS " =~ " $lang " ]]; then
vers="5.0"
verslong="./docs_$lang/OWASP Application Security Verification Standard $vers-$lang"
python3 tools/export.py --format json --language $lang > "$verslong.json"
python3 tools/export.py --format cdx_json --language $lang > "$verslong.cdx.json"
python3 tools/export.py --format json --language $lang --verify-only true
python3 tools/export.py --format json_flat --language $lang > "$verslong.flat.json"
python3 tools/export.py --format json_flat --language $lang --verify-only true
python3 tools/export.py --format xml --language $lang > "$verslong.xml"
python3 tools/export.py --format xml --language $lang --verify-only true
python3 tools/export.py --format csv --language $lang > "$verslong.csv"
python3 tools/export.py --format csv --language $lang --verify-only true
tools/generate_document.sh $lang $vers
fi
done