blob: bb499392a4a5cf9a427cbac33154511550f8fe0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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}"
|