aboutsummaryrefslogtreecommitdiff
path: root/util/release/genrelnotes
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2023-06-10 12:32:50 -0700
committerMartin L Roth <gaumless@gmail.com>2023-09-11 15:45:41 +0000
commit0d3a1fb93fe89aff927a7f724ef9463ad63f5648 (patch)
tree7737a268b95fd86f82dd7f675151444cb4e309e5 /util/release/genrelnotes
parent38d8a6a570d54813d0373c5844e87dddb837a1c1 (diff)
Switch release scripts over to use main branch
In preparation for switching over coreboot. Change-Id: Id66f0def84b913fc8fdd4ee77fef996e45dbd4f5 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75780 Reviewed-by: Martin L Roth <gaumless@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'util/release/genrelnotes')
-rwxr-xr-xutil/release/genrelnotes8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/release/genrelnotes b/util/release/genrelnotes
index 46037abe48..e899c3e7e7 100755
--- a/util/release/genrelnotes
+++ b/util/release/genrelnotes
@@ -28,7 +28,7 @@ fi
# Try to verify that the repo is clean before losing state.
if ! git diff-index --quiet --cached HEAD 2>/dev/null || \
- [ "$(git diff origin/master --shortstat 2>/dev/null | tail -n1)" != "" ]; then
+ [ "$(git diff origin/main --shortstat 2>/dev/null | tail -n1)" != "" ]; then
echo "ERROR: repo is not clean. Exiting." >&2
exit 1
fi
@@ -38,7 +38,7 @@ if [ "$1" == "--help" ] || [ -z "$1" ] || [ -z "$2" ]; then
echo
echo "Usage: $0 <old_version> <new_version> [release notes file]"
echo "Old version should be a tag (4.1), a branch (origin/4.1), or a commit id"
- echo "New version can be a branch (origin/master) a tag (4.2), or a commit id"
+ echo "New version can be a branch (origin/main) a tag (4.2), or a commit id"
echo "Logfile can be a new file or an existing file to update"
echo "Example: \"$0 origin/4.1 4.2 rnotes.txt\""
echo
@@ -187,7 +187,7 @@ version_ctrl_c() {
printf "\n Cleaning up and exiting.\n" >&2
find 'src' -name 'gnumakefile' \
-exec rename 's/gnumakefile/Makefile\.inc/' {} \;
- git checkout origin/master > /dev/null 2>&1
+ git checkout origin/main > /dev/null 2>&1
git submodule update --init --checkout > /dev/null 2>&1
rm "$LOGFILE"
exit 1;
@@ -298,7 +298,7 @@ southbridge_list_new=$(find_areas "src/southbridge" "Kconfig" "")
printf "Calculating new SLOC\n"
NEW_SLOC=$(get_sloc)
-git checkout origin/master > /dev/null 2>&1
+git checkout origin/main > /dev/null 2>&1
git submodule update --init --checkout > /dev/null 2>&1
trap "" SIGINT