1ea6203cbf
gen-openbsd-tags.sh synchronizes local tags from the portable tree with the openbsd git mirror. It does this by matching commit timestamps, which can handle rehashing due to modifications of the git import scope if we need it later. check-release.sh generates a release tarball and compares it to an actual release. This has shown a few mistakes in past release, but we can use it to ensure are no issues with future releases.
21 lines
542 B
Bash
Executable File
21 lines
542 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
for tag in `git tag`; do
|
|
branch=master
|
|
if [[ $tag = v2.0* ]]; then
|
|
branch=OPENBSD_5_6
|
|
elif [[ $tag = v2.1* ]]; then
|
|
branch=OPENBSD_5_7
|
|
elif [[ $tag = v2.2* ]]; then
|
|
branch=OPENBSD_5_8
|
|
elif [[ $tag = v2.3* ]]; then
|
|
branch=OPENBSD_5_9
|
|
fi
|
|
# adjust for 9 hour timezone delta between trees
|
|
release_ts=$((`git show -s --format=%ct $tag|tail -n1` + 32400))
|
|
commit=`git -C openbsd rev-list -n 1 --before=$release_ts $branch`
|
|
git -C openbsd tag -f libressl-$tag $commit
|
|
echo Tagged $tag as $commit in openbsd
|
|
done
|