iptables: refer to dmesg when we hit error
[jleu-iptables.git] / release.sh
blob8998348fff6ae0349e6c5b280a56385859276699
1 #! /bin/sh
3 set -e
5 VERSION=1.4.3-rc1
6 PREV_VERSION=1.4.2
7 TMPDIR=/tmp/ipt-release
8 IPTDIR="$TMPDIR/iptables-$VERSION"
10 PATCH="patch-iptables-$PREV_VERSION-$VERSION.bz2";
11 TARBALL="iptables-$VERSION.tar.bz2";
12 CHANGELOG="changes-iptables-$PREV_VERSION-$VERSION.txt";
14 mkdir -p "$TMPDIR"
15 git shortlog "v$PREV_VERSION..v$VERSION" > "$TMPDIR/$CHANGELOG"
16 git diff "v$PREV_VERSION..v$VERSION" | bzip2 > "$TMPDIR/$PATCH"
17 git archive --prefix="iptables-$VERSION/" "v$VERSION" | tar -xC "$TMPDIR/"
19 cd "$IPTDIR" && {
20 sh autogen.sh
21 cd ..
24 tar -cjf "$TARBALL" "iptables-$VERSION";
25 gpg -u "Netfilter Core Team" -sb "$TARBALL";
26 md5sum "$TARBALL" >"$TARBALL.md5sum";
27 sha1sum "$TARBALL" >"$TARBALL.sha1sum";
29 gpg -u "Netfilter Core Team" -sb "$PATCH";
30 md5sum "$PATCH" >"$PATCH.md5sum";
31 sha1sum "$PATCH" >"$PATCH.sha1sum";