diff --git a/README.rst b/README.rst index f9194127a..047135bfb 100644 --- a/README.rst +++ b/README.rst @@ -3,14 +3,7 @@ Pillow Wheel Builder This repository creates wheels for tagged versions of Pillow:: - git submodule init - git submodule update Pillow - git add Pillow - cd Pillow - git checkout - cd .. - git commit -m "Pillow -> " Pillow - git push + ./update-pillow-tag.sh .. image:: https://img.shields.io/travis/python-pillow/pillow-wheels/master.svg :target: https://travis-ci.org/python-pillow/pillow-wheels diff --git a/update-pillow-tag.sh b/update-pillow-tag.sh new file mode 100755 index 000000000..a48d6cab0 --- /dev/null +++ b/update-pillow-tag.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e # exit on error + +if [ $# -eq 0 ]; then + echo "Usage: update-pillow-tag.sh [[release tag]]" + exit +fi + +git checkout master +git submodule init +git submodule update Pillow +cd Pillow +git fetch --all +git checkout $1 +cd .. +git commit -m "Pillow -> $1" Pillow +git push