Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Please ADD ALL Changes to the UNRELEASED SECTION and not a specific release
- Replace raw echo with standard output helpers in git/update-dotnet-sdk
- Replace raw echo with standard output helpers in git/switchtomain
- Replace raw echo with output helpers in git/optimise-git
- Replace raw echo with output helpers in git/mkmissing-release
### Changed
- Replace raw echo with standard output helpers (die/info/success) in github/cancel-workflows
- Replace raw echo with standard output helpers (die/info/success) in git/update-repos-personal
Expand Down
21 changes: 17 additions & 4 deletions git/mkmissing-release
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
#! /bin/sh

die() {
printf '\n\033[31m✗\033[0m %s\n' "$*" >&2
exit 1
}

success() {
printf '\n\033[32m✓\033[0m %s\n' "$*"
}

info() {
printf '\n\033[32m→\033[0m %s\n' "$*"
}

BASEDIR="$(dirname "$(readlink -f "$0")")"
echo "Script Dir: $BASEDIR"
info "Script Dir: $BASEDIR"

find "$(pwd)"/* -name '*.git' -print | sed "s|/.git$||" | sort -u | grep -v .cache | while IFS= read -r line
do
echo "$line"
info "$line"
CURRENT_DIR=$line

echo "==== $CURRENT_DIR ==="
info "==== $CURRENT_DIR ==="
cd "$CURRENT_DIR" && "$BASEDIR/missing-release-branches"

echo " * done"
success " * done"
done
Loading