prole/tests/shellspec/.vendor/shellspec-0.28.1/contrib/release.sh
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims

- Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers

- Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them

- Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring

- Document the new layout in docs/layout.md

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-13 09:19:56 -07:00

31 lines
507 B
Bash
Executable File

#!/bin/sh -eu
run() {
echo "$@"
"$@"
}
confirm() {
printf "%s [y/N] " "$1"
read -r ans
case $ans in ([yY] | [yY][eE][sS]) return; esac
return 1
}
is_prerelease() {
case $1 in (*-*) return; esac
return 1
}
version=$(./shellspec --version)
confirm "Release $version?" || exit 0
run git tag -s -a "$version" -m "$version"
run git push origin "$version"
is_prerelease "$version" && exit 0
confirm "Update $version to latest?" || exit 0
run git tag -f latest
run git push -f origin latest