summaryrefslogtreecommitdiffstats
path: root/shell-scripts/prepare-nss-clients.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shell-scripts/prepare-nss-clients.sh')
-rwxr-xr-xshell-scripts/prepare-nss-clients.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/shell-scripts/prepare-nss-clients.sh b/shell-scripts/prepare-nss-clients.sh
new file mode 100755
index 0000000..02f5762
--- /dev/null
+++ b/shell-scripts/prepare-nss-clients.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+#
+
+# Defaults
+TARGET=14
+ARCH=x86_64
+
+#------------------------------------------------------------------------------
+# Testing: Having our new versions in the build root should not break
+# the build of other packages that depend on nss. Two very important
+# pacakges are curl and xulrunner. curl is a client of the PEM module
+# and xulrunner is how Mozilla applications call nss.
+#
+# Install dependencies for those devel packages that depend on nss and
+# verify that we don't break their builds.
+
+while getopts i:j: opt
+do
+ case $opt in
+ i) TARGET="$OPTARG";;
+ j) ARCH="$OPTARG";;
+ ?) printf "Usage: %s: [-a nspr_version] [-b nspr_version] [-c nss_version] [-d nss_version] [-e dist] [-f arch]\n" $0
+ exit 2;;
+ esac
+done
+
+export dist=${TARGET}
+export arch=${ARCH}
+
+cc="curl xulrunner"
+
+for c in $cc; do
+ pushd $c
+ fedpkg clean
+ fedpkg srpm
+ fedpkg local
+ push ${arch}
+ mock -r fedora-${dist}-${arch} --installdeps *.rpm
+ popd
+ mock -r fedora-${dist}-${arch} --copyin ${c}-*.src.rpm /tmp
+ popd
+done
+
+