Matoro Mahri e42360c786
app-emulation/hercules-sdl: add 4.9.1
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Part-of: https://github.com/gentoo/gentoo/pull/45052
Closes: https://github.com/gentoo/gentoo/pull/45052
Signed-off-by: Sam James <sam@gentoo.org>
2025-12-16 21:47:24 +00:00

25 lines
707 B
Bash

#!/usr/bin/env bash
[[ -z "${1}" ]] && exit 1
[[ "${1}" =~ [0-9]+\.[0-9]+\.[0-9]+ ]] || exit 1
CLONEDIR="$(mktemp -d)"
for f in "hyperion" "crypto" "decNumber" "SoftFloat" "telnet"
do
git -C "${CLONEDIR}" clone --tags "https://github.com/SDL-Hercules-390/${f}"
done
VERSIONARR=( ${1//./ })
VERSIONTAG="Release_${VERSIONARR[0]}.${VERSIONARR[1]}"
[[ "${VERSIONARR[2]}" == "0" ]] || VERSIONTAG+=".${VERSIONARR[2]}"
RELEASEDATE="$(git -C "${CLONEDIR}/hyperion" show -s --format="%ci" "${VERSIONTAG}")"
echo
for f in "crypto" "decNumber" "SoftFloat" "telnet"
do
echo -n "${f,,}: "
git -C "${CLONEDIR}/${f}" rev-list -n 1 --first-parent --before="${RELEASEDATE}" master
done
rm -rf "${CLONEDIR}"