]> git.proxmox.com Git - proxmox-acme.git/blame - check-missing-functions
add shellscript to find needed functions not provided by proxmox-acme
[proxmox-acme.git] / check-missing-functions
CommitLineData
39a1c956
SI
1#!/bin/sh
2
3set -e
4
5# functions already in src/proxmox-acme
6PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
7 src/proxmox-acme | sed -r 's/\|$//')
8# functions defined in all plugins
9LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
10 src/acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
11
12grep -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: *#"