Patrick McHardy | 8e0b566 | 2008-06-17 17:22:32 +0200 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # |
| 3 | set -e |
| 4 | |
| 5 | VERSION=1.4.1.1 |
| 6 | PREV_VERSION=1.4.1 |
| 7 | TMPDIR=/tmp/ipt-release |
| 8 | IPTDIR="$TMPDIR/iptables-$VERSION" |
| 9 | |
| 10 | PATCH=patch-iptables-$PREV_VERSION-$VERSION.bz2 |
| 11 | TARBALL=iptables-$VERSION.tar.bz2 |
| 12 | CHANGELOG=changes-iptables-$PREV_VERSION-$VERSION |
| 13 | |
| 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/" |
| 18 | |
| 19 | cd "$IPTDIR" && { |
| 20 | sh autogen.sh |
| 21 | rm autogen.sh COMMIT_NOTES |
| 22 | cd .. |
| 23 | } |
| 24 | |
| 25 | tar -cjf $TARBALL iptables-$VERSION |
| 26 | gpg -u "Netfilter Core Team" -sb $TARBALL |
| 27 | md5sum $TARBALL > $TARBALL.md5sum |
| 28 | |
| 29 | gpg -u "Netfilter Core Team" -sb $PATCH |
| 30 | md5sum $PATCH > $PATCH.md5sum |