Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4032 from stapelberg/release-sh
Browse files Browse the repository at this point in the history
release.sh fixes from last release
  • Loading branch information
Airblader committed Apr 22, 2020
2 parents f9ed0db + 8f0b92c commit 4d55bba
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions release.sh
@@ -1,8 +1,8 @@
#!/bin/zsh
# This script is used to prepare a new release of i3.

export RELEASE_VERSION="4.17"
export PREVIOUS_VERSION="4.16"
export RELEASE_VERSION="4.19"
export PREVIOUS_VERSION="4.18"
export RELEASE_BRANCH="next"

if [ ! -e "../i3.github.io" ]
Expand Down Expand Up @@ -69,11 +69,9 @@ cp build/i3-${RELEASE_VERSION}.tar.bz2 .

echo "Differences in the release tarball file lists:"

diff -u \
diff --color -u \
<(tar tf ../i3-${PREVIOUS_VERSION}.tar.bz2 | sed "s,i3-${PREVIOUS_VERSION}/,,g" | sort) \
<(tar tf i3-${RELEASE_VERSION}.tar.bz2 | sed "s,i3-${RELEASE_VERSION}/,,g" | sort) \
| colordiff

<(tar tf i3-${RELEASE_VERSION}.tar.bz2 | sed "s,i3-${RELEASE_VERSION}/,,g" | sort)

gpg --armor -b i3-${RELEASE_VERSION}.tar.bz2

Expand Down Expand Up @@ -130,7 +128,7 @@ RUN dpkg-buildpackage -S -sa -j8
EOT

CONTAINER_NAME=$(echo "i3-${TMPDIR}" | sed 's,/,,g')
docker build -t i3 .
docker build --no-cache -t i3 .
for file in $(docker run --name "${CONTAINER_NAME}" i3 /bin/sh -c "ls /usr/src/i3*_${RELEASE_VERSION}*")
do
docker cp "${CONTAINER_NAME}:${file}" ${TMPDIR}/debian/
Expand Down

0 comments on commit 4d55bba

Please sign in to comment.