diff options
author | Elio Maldonado <emaldona@redhat.com> | 2013-01-06 17:08:24 -0800 |
---|---|---|
committer | Elio Maldonado <emaldona@redhat.com> | 2013-01-06 17:08:24 -0800 |
commit | 29537299613a512d8049e4fb1db71e742302719c (patch) | |
tree | a386e48c4ee3dfef807325f9b92b08570eef417d /build_nss_inside_mock.sh | |
parent | 79650ad90c7b21e0889cdfd2bac6e21e72c3ccba (diff) | |
download | nssmockbuilds4fedora-29537299613a512d8049e4fb1db71e742302719c.tar.gz nssmockbuilds4fedora-29537299613a512d8049e4fb1db71e742302719c.tar.xz nssmockbuilds4fedora-29537299613a512d8049e4fb1db71e742302719c.zip |
Simplify the shell scripts
- Add build_nss_inside_mock.sh to do what its name says
- Add build_nss.sh that builds all packages and them creates a mock shell to execute build_nss_inside_mock.sh
- Need to modify build-nss.py and build_functions to invoke build_nss.sh
- Remove the legacy-scripts
- Update README with new exmaples
Diffstat (limited to 'build_nss_inside_mock.sh')
-rwxr-xr-x | build_nss_inside_mock.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/build_nss_inside_mock.sh b/build_nss_inside_mock.sh new file mode 100755 index 0000000..3e2bed3 --- /dev/null +++ b/build_nss_inside_mock.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Build the nss package set and some nss clients inside mock + +#dist=19 +#arch=x86_64 + +# Ignore these warnings +# Installing /builddir/build/RPMS +# error: not an rpm package +# error: /builddir/build/RPMS cannot be installed +cd /builddir/build/RPMS/ + +# build and install the nss packages +nss_pkgs="nspr nss-util nss-softokn nss" +NSS_PKGS=${NSS_PKGS:-$nss_pkgs} + +client_pkgs="crypto-utils curl evolution-data-server mod_nss mod_revocator openswan xulrunner" +CLIENT_PKGS=${CLIENT_PKGS:-$client_pkgs} + +# build and install the nss packages +for pkg in $NSS_PKGS; do + rpmbuild --rebuild /tmp/${pkg}-*.src.rpm + package=`rpm -qp /tmp/${pkg}-*.src.rpm` + notInstalled=`rpm -q $package | grep "not installed"` + if [ -n "${notInstalled}" ]; then + rpm -ihv /builddir/build/RPMS/${pkg}-* + fi +done +# build the client packages +for pkg in $CLIENT_PKGS; do + rpmbuild --rebuild /tmp/${pkg}-*.src.rpm +done + |