release.sh 804 B

12345678910111213141516171819202122232425262728293031
  1. #! /bin/sh
  2. #
  3. set -e
  4. VERSION=1.4.7
  5. PREV_VERSION=1.4.6
  6. TMPDIR=/tmp/ipt-release
  7. IPTDIR="$TMPDIR/iptables-$VERSION"
  8. PATCH="patch-iptables-$PREV_VERSION-$VERSION.bz2";
  9. TARBALL="iptables-$VERSION.tar.bz2";
  10. CHANGELOG="changes-iptables-$PREV_VERSION-$VERSION.txt";
  11. mkdir -p "$TMPDIR"
  12. git shortlog "v$PREV_VERSION..v$VERSION" > "$TMPDIR/$CHANGELOG"
  13. git diff "v$PREV_VERSION..v$VERSION" | bzip2 > "$TMPDIR/$PATCH"
  14. git archive --prefix="iptables-$VERSION/" "v$VERSION" | tar -xC "$TMPDIR/"
  15. cd "$IPTDIR" && {
  16. sh autogen.sh
  17. cd ..
  18. }
  19. tar -cjf "$TARBALL" "iptables-$VERSION";
  20. gpg -u "Netfilter Core Team" -sb "$TARBALL";
  21. md5sum "$TARBALL" >"$TARBALL.md5sum";
  22. sha1sum "$TARBALL" >"$TARBALL.sha1sum";
  23. gpg -u "Netfilter Core Team" -sb "$PATCH";
  24. md5sum "$PATCH" >"$PATCH.md5sum";
  25. sha1sum "$PATCH" >"$PATCH.sha1sum";