Welcome to mirror list, hosted at ThFree Co, Russian Federation.

generate_dnsplugins_all.sh « snap « tools - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 976b0dd7b3e9fe91dbb580de67f3bc1dd1d8ef60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Generate all necessary files for building snaps for all DNS plugins
set -eu

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CERTBOT_DIR="$(dirname "$(dirname "${DIR}")")"

for PLUGIN_PATH in "${CERTBOT_DIR}"/certbot-dns-*; do
  bash "${CERTBOT_DIR}"/tools/snap/generate_dnsplugins_snapcraft.sh $PLUGIN_PATH
  bash "${CERTBOT_DIR}"/tools/snap/generate_dnsplugins_postrefreshhook.sh $PLUGIN_PATH
  # Create constraints file
  "${CERTBOT_DIR}"/tools/merge_requirements.py tools/dev_constraints.txt \
    <("${CERTBOT_DIR}"/tools/strip_hashes.py tools/certbot_constraints.txt) \
    <("${CERTBOT_DIR}"/tools/strip_hashes.py tools/pipstrap_constraints.txt) \
    > "${PLUGIN_PATH}"/snap-constraints.txt
done