mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 23:04:39 -04:00
This PR adds the following documentation improvements to fix https://github.com/certbot/certbot/issues/7958: - Simplify building external plugins - Separate out certbot snap instructions from plugin instructions - Mention that dnsimple is just an example for the plugin instructions - Mention remote build for other architectures - Mention snap doc exists elsewhere in developer guide (`contributing.rst`) * Set up generate_dnsplugins_all.sh for all files and parametrize snapcraft and postrefreshhook files * Create constraints file in the generate_dnsplugins_all script * Separate out plugin and certbot snaps and update instructions * Add remote build instructions * Add pointers to the README to contributing.rst
15 lines
692 B
Bash
Executable file
15 lines
692 B
Bash
Executable file
#!/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 letsencrypt-auto-source/pieces/dependency-requirements.txt) \
|
|
> "${PLUGIN_PATH}"/snap-constraints.txt
|
|
done
|