]> git.proxmox.com Git - proxmox-acme.git/blob - check-missing-functions
a76aefce46c94f319214d005d4bb1c983bfffc0b
[proxmox-acme.git] / 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 src/proxmox-acme | sed -r 's/\|$//')
8 # functions defined in all plugins
9 LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
10 src/acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
11
12 grep -E '\b_[a-zA-Z0-9_-]+ ' src/acme.sh/dnsapi/dns_*sh | \
13 grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^src/acme.sh/dnsapi/.*sh: *#"