Copy remote_toolchain_inputs files when updating JDK
Copy the remote_toolchain_inputs files into the staging directory
when updating teh JDK so they are not lost when the staging directory
replaces the previous JDK.
Test: update.sh 7937646
Change-Id: Idebc436f87e15f0c5b902c63ec24afe7ff6e174b
diff --git a/update.sh b/update.sh
index 858ff57..14b3397 100755
--- a/update.sh
+++ b/update.sh
@@ -34,6 +34,10 @@
rm -f ${LINUX_ZIP} ${DARWIN_ZIP}
+# Copy the RBE toolchain inputs files from the previous version to the staging
+# directory.
+cp linux-x86/bin/*_remote_toolchain_inputs staging/linux-x86/bin
+
version=$(staging/linux-x86/bin/java -version 2>&1 | grep "OpenJDK Runtime Environment" | sed -e 's/.*(\(.*\))/\1/')
# Commit to staging