summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/release/build-release14
1 files changed, 13 insertions, 1 deletions
diff --git a/util/release/build-release b/util/release/build-release
index 5bbc1b5d7a..c8e939b4bb 100755
--- a/util/release/build-release
+++ b/util/release/build-release
@@ -38,6 +38,16 @@ if [ -z "${VERSION_NAME}" ] || [ "${VERSION_NAME}" = "--help" ] || [ -z "${COMMI
exit 1
fi
+pause() {
+ local text=$1
+
+ echo
+ if [ -n "$text" ]; then
+ echo "$text"
+ fi
+ read -r -p "Press [Enter] key to continue..."
+}
+
# Verify that tar supports --sort
if ! tar --sort=name -cf /dev/null /dev/null 2>/dev/null ; then
echo "Error: The installed version of tar does not support --sort"
@@ -70,13 +80,15 @@ fi
util/crossgcc/buildgcc -W > .crossgcc-version
- git submodule update --init --checkout
if [ -n "${GPG_KEY_ID}" ]; then
+ pause "The next step will need your PGP key's passphrase, so be ready."
git tag -a -s -u "$GPG_KEY_ID" --force "${VERSION_NAME}" -m "coreboot version ${VERSION_NAME}" --
else
git tag -a --force "${VERSION_NAME}" -m "coreboot version ${VERSION_NAME}" --
fi
+ git submodule update --init --checkout
+
printf "%s-%s\n" "$VERSION_NAME" "$(git log --pretty=%h -1)" > .coreboot-version
printf "%s\n" "$(git log --pretty=format:%ci -1)" > "${TIME_FILE}"
)