mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 19:34:30 +00:00
- 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>
31 lines
507 B
Bash
Executable File
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
|