blob: fcc499c90238ae89071d0f1709326fceeda10f5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|