Migrate UI cleanup phase 4 from MIPS into ARM
[tomato.git] / release / src-rt-6.x.4708 / router / iptables-1.4.x / release.sh
blob7c76423ebdaf7de7e7f4237af2e936ca8f176876
1 #! /bin/sh
3 set -e
5 VERSION=1.4.7
6 PREV_VERSION=1.4.6
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";