• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2#
3# Release automation script for running within the Docker container.
4# This script is invoked from the Linux script.
5#
6# Because this is run in the Docker container, we can use absolute
7# paths to everything and generally count on everything being where we
8# expect it to be.
9
10set -e
11
12if [ -z "$1" ]; then
13  echo "Usage: $0 <version>"
14  exit 1
15fi
16
17cd /conscrypt
18
19BRANCH=$(echo "$1" | sed -E 's/([0-9]+[.][0-9]+[.])[0-9]+/\1x/')
20git checkout "$BRANCH"
21
22# Update the gradle.properties file for the location of files in the
23# container.
24
25# The host copy may have the signingKeystore and
26# signingPassword properties commented out because signing isn't
27# routinely done for development builds, so ensure they're
28# uncommented.
29sed -i 's/#signingKeystore/signingKeystore/' /root/.gradle/gradle.properties
30sed -i 's/#signingPassword/signingPassword/' /root/.gradle/gradle.properties
31sed -i 's\signing.secretKeyRingFile=.*\signing.secretKeyRingFile=/root/.gnupg/secring.gpg\' /root/.gradle/gradle.properties
32sed -i 's\signingKeystore=.*\signingKeystore=/root/certkeystore\' /root/.gradle/gradle.properties
33
34./gradlew conscrypt-openjdk:build
35./gradlew -Dorg.gradle.parallel=false uploadArchives
36
37cd /usr/src/boringssl
38
39echo "***************************************************************"
40echo "** BoringSSL revision: $(git rev-parse HEAD)"
41echo "***************************************************************"
42