Dactyloidae/security/nss/automation/taskcluster/scripts/build_gyp.sh

24 lines
481 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-02-06 11:46:26 +01:00
source $(dirname "$0")/tools.sh
# Clone NSPR if needed.
2018-02-06 11:46:26 +01:00
hg_clone https://hg.mozilla.org/projects/nspr ./nspr default
if [[ -f nss/nspr.patch && "$ALLOW_NSPR_PATCH" == "1" ]]; then
pushd nspr
cat ../nss/nspr.patch | patch -p1
popd
fi
# Build.
nss/build.sh -g -v --enable-libpkix "$@"
# Package.
2018-02-23 11:04:39 +01:00
if [[ $(uname) = "Darwin" ]]; then
mkdir -p public
tar cvfjh public/dist.tar.bz2 dist
else
mkdir artifacts
tar cvfjh artifacts/dist.tar.bz2 dist
fi