#!/bin/sh X=0 VER="$( sed -n '1s,.* v,,p' README )" if [ "$VER" != "$1" ]; then echo echo "*** You forgot to update the version at the top of README" echo X=1 fi VER="$( sed -n '/^\.\. |version| replace:: /s,.* ,,p' miragextract.rst )" if [ "$VER" != "$1" ]; then echo echo "*** You forgot to update the version in miragextract.rst" echo X=1 fi VER="$( sed -n '/^\.\. |version| replace:: /s,.* ,,p' cuerecover.rst )" if [ "$VER" != "$1" ]; then echo echo "*** You forgot to update the version in cuerecover.rst" echo X=1 fi exit $X