summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-09-12 21:57:58 -0400
committerB. Stack <bgstack15@gmail.com>2023-09-12 21:57:58 -0400
commit3622bfdd962f1123d351c04d9c6a009da4e883a8 (patch)
treed47858aeda10a66d8f64066308ed9165c0dfaaf9 /scripts
parenttry another way to show urls (diff)
downloadlibrewolf-debian-3622bfdd962f1123d351c04d9c6a009da4e883a8.tar.gz
librewolf-debian-3622bfdd962f1123d351c04d9c6a009da4e883a8.tar.bz2
librewolf-debian-3622bfdd962f1123d351c04d9c6a009da4e883a8.zip
try printing whole _service file
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci-print-_service.sh32
-rw-r--r--scripts/prep-librewolf-dpkg.conf4
2 files changed, 36 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
diff --git a/scripts/prep-librewolf-dpkg.conf b/scripts/prep-librewolf-dpkg.conf
index 915e3fc..3d64f3a 100644
--- a/scripts/prep-librewolf-dpkg.conf
+++ b/scripts/prep-librewolf-dpkg.conf
@@ -12,3 +12,7 @@ source_version=${source_version:-'117.0-1'}
settings_commit=${settings_commit:-'master'}
CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)}
output_dir=${CI_PROJECT_DIR}/out
+
+ARTIFACT_PROTOCOL=https
+ARTIFACT_HOSTNAME=storage.ci.librewolf.net
+ARTIFACT_PATHDIR="/artifacts/${CI_PIPELINE_NUMBER}"
bgstack15