diff options
Diffstat (limited to 'scripts/ci-print-_service.sh')
-rwxr-xr-x | scripts/ci-print-_service.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/ci-print-_service.sh b/scripts/ci-print-_service.sh new file mode 100755 index 0000000..fcc499c --- /dev/null +++ b/scripts/ci-print-_service.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# Goal: print entirety of a useful OBS service file + +##################################### +# Load settings +# basically, dot-source the conf file. +test -z "${librewolf_dpkg_conf}" && export librewolf_dpkg_conf="$( find "$( dirname "${0}" )" -maxdepth 2 -name "prep-librewolf-dpkg.conf" -print 2>/dev/null | head -n1 )" +test ! -r "${librewolf_dpkg_conf}" && { echo "Unable to load config file, which should be named prep-librewolf-dpkg.conf. Aborted." 1>&2 ; exit 1 ; } +. "${librewolf_dpkg_conf}" + +cat <<EOF +<services> + <service name="download_url"> + <param name="protocol">${ARTIFACT_PROTOCOL}</param> + <param name="host">${ARTIFACT_HOSTNAME}</param> + <param name="path">${ARTIFACT_PATHDIR}/librewolf_${distro_firefox_version}.debian.tar.xz</param> + <param name="filename">librewolf_${distro_firefox_version}.debian.tar.xz</param> + </service> + <service name="download_url"> + <param name="protocol">${ARTIFACT_PROTOCOL}</param> + <param name="host">${ARTIFACT_HOSTNAME}</param> + <param name="path">${ARTIFACT_PATHDIR}/librewolf_${distro_firefox_version}.dsc</param> + <param name="filename">librewolf_${distro_firefox_version}.dsc</param> + </service> + <service name="download_url"> + <param name="protocol">${ARTIFACT_PROTOCOL}</param> + <param name="host">${ARTIFACT_HOSTNAME}</param> + <param name="path">${ARTIFACT_PATHDIR}/librewolf_${firefox_version}.orig.tar.xz</param> + <param name="filename">librewolf_${firefox_version}.orig.tar.xz</param> + </service> +</services> +EOF |