mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
37 lines
868 B
Bash
Executable File
37 lines
868 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
test -s VERSION.txt && test -s changelog && test -s README.md
|
|
test -d .git
|
|
|
|
read TVERSION < VERSION.txt
|
|
export TVERSION
|
|
|
|
releasedir="$HOME/xca-$TVERSION"
|
|
|
|
(
|
|
echo "<html><body><div><ul>"
|
|
sed 's/&/\&/g;
|
|
s/</\</g;
|
|
s/>/\>/g;
|
|
s#^xca \([^ ]*\) *\(.*\)#</ul></div><div id="changelog_\1"><h3>xca \1 \2</h3><hr/><ul>#;
|
|
s#\*\(.*\)#</li><li>\1#' changelog
|
|
echo "/ul></div></body></html>"
|
|
) > changelog.html
|
|
|
|
./release/gen-binary-hash "$releasedir"
|
|
git commit -a -m "Release XCA $TVERSION done"
|
|
|
|
./release/github.release.py "$TVERSION" "${releasedir}/"xca*"$TVERSION"*
|
|
|
|
cat << EOF
|
|
|
|
After verifying the commits, tags and github release,
|
|
finally do:
|
|
git push origin --tags main
|
|
scp -r ${releasedir}/doc/html hohnstaedt.de:xca-doc/
|
|
scp -r changelog.html hohnstaedt.de:xca-doc/
|
|
Un-draft the release on github
|
|
EOF
|