post-release release.sh changes

This commit is contained in:
Michael Stapelberg
2021-10-19 18:16:34 +02:00
parent c6ea9bbace
commit 6fe33394e1

View File

@ -3,8 +3,8 @@
set -eu set -eu
export RELEASE_VERSION="4.19" export RELEASE_VERSION="4.20"
export PREVIOUS_VERSION="4.18.3" export PREVIOUS_VERSION="4.19.2"
export RELEASE_BRANCH="next" export RELEASE_BRANCH="next"
if [ ! -e "../i3.github.io" ] if [ ! -e "../i3.github.io" ]
@ -37,8 +37,8 @@ STARTDIR=$PWD
TMPDIR=$(mktemp -d) TMPDIR=$(mktemp -d)
cd $TMPDIR cd $TMPDIR
if ! wget https://i3wm.org/downloads/i3-${PREVIOUS_VERSION}.tar.bz2; then if ! wget https://i3wm.org/downloads/i3-${PREVIOUS_VERSION}.tar.xz; then
echo "Could not download i3-${PREVIOUS_VERSION}.tar.bz2 (required for comparing files)." echo "Could not download i3-${PREVIOUS_VERSION}.tar.xz (required for comparing files)."
exit 1 exit 1
fi fi
git clone --quiet --branch "${RELEASE_BRANCH}" https://github.com/i3/i3 git clone --quiet --branch "${RELEASE_BRANCH}" https://github.com/i3/i3
@ -100,6 +100,11 @@ git config --add remote.origin.push "+refs/heads/stable:refs/heads/stable"
cd "${TMPDIR}" cd "${TMPDIR}"
mkdir debian mkdir debian
# Copy over the changelog because we expect it to be locally modified in the
# start directory.
cp "${STARTDIR}/debian/changelog" i3/debian/changelog
(cd i3 && git add debian/changelog && git commit -m 'Update debian/changelog')
cat > ${TMPDIR}/Dockerfile <<EOT cat > ${TMPDIR}/Dockerfile <<EOT
FROM debian:sid FROM debian:sid
RUN sed -i 's,^deb \(.*\),deb \1\ndeb-src \1,g' /etc/apt/sources.list RUN sed -i 's,^deb \(.*\),deb \1\ndeb-src \1,g' /etc/apt/sources.list