Home | History | Annotate | Download | only in iptables
      1 #! /bin/sh
      2 #
      3 set -e
      4 
      5 VERSION=1.4.7
      6 PREV_VERSION=1.4.6
      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.txt";
     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 	cd ..
     22 }
     23 
     24 tar -cjf "$TARBALL" "iptables-$VERSION";
     25 gpg -u "Netfilter Core Team" -sb "$TARBALL";
     26 md5sum "$TARBALL" >"$TARBALL.md5sum";
     27 sha1sum "$TARBALL" >"$TARBALL.sha1sum";
     28 
     29 gpg -u "Netfilter Core Team" -sb "$PATCH";
     30 md5sum "$PATCH" >"$PATCH.md5sum";
     31 sha1sum "$PATCH" >"$PATCH.sha1sum";
     32