#!/bin/zsh
# This script is used to prepare a new release of i3.
-export RELEASE_VERSION="4.12"
-export PREVIOUS_VERSION="4.11"
+export RELEASE_VERSION="4.13"
+export PREVIOUS_VERSION="4.12"
export RELEASE_BRANCH="next"
if [ ! -e "../i3.github.io" ]
git rm RELEASE-NOTES-${PREVIOUS_VERSION}
sed -i "s,RELEASE-NOTES-${PREVIOUS_VERSION},RELEASE-NOTES-${RELEASE_VERSION},g" Makefile.am
sed -i "s/AC_INIT(\[i3\], \[${PREVIOUS_VERSION}\]/AC_INIT([i3], [${RELEASE_VERSION}]/" configure.ac
-sed -i "s,<refmiscinfo class=\"version\">[^<]*</refmiscinfo>,<refmiscinfo class=\"version\">${RELEASE_VERSION}</refmiscinfo>,g" man/asciidoc.conf
echo "${RELEASE_VERSION} ($(date +%F))" > I3_VERSION
git add I3_VERSION
git commit -a -m "release i3 ${RELEASE_VERSION}"
echo " cd ${TMPDIR}"
echo " sendmail -t < email.txt"
echo ""
+echo "Update milestones on GitHub:"
+echo " Set due date of ${RELEASE_VERSION} to $(date +'%Y-$m-%d') and close the milestone"
+echo " Create milestone for the next version with unset due date"
+echo ""
echo "Announce on:"
echo " twitter"
echo " google+"
echo " #i3 topic"
+echo " reddit /r/i3wm"