]> git.proxmox.com Git - proxmox-acme.git/blob - src/test/check-missing-functions
c8a2b3dff0ed8256fa25cf4a6e4604d967cdd4fe
[proxmox-acme.git] / src / test / check-missing-functions
1 #!/bin/sh
2
3 set -e
4
5 # functions already in src/proxmox-acme
6 PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
7 ../proxmox-acme | sed -r 's/\|$//')
8
9 # functions defined in all plugins
10 LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
11 ../acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
12
13 grep -P '\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
14 grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^../acme.sh/dnsapi/.*sh: *#"