From 917cf31c592080a858d5e3fd8ab93c2250c64605 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 6 Jan 2019 17:19:03 +0200 Subject: [PATCH] Add script to update Pillow --- README.rst | 9 +-------- update-pillow-tag.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100755 update-pillow-tag.sh 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