From d6a4ec89c1b44ca2aefbb7058b4b4af421689915 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sun, 1 Nov 2009 13:14:56 +0200 Subject: [PATCH] Check that scikit is built before generating docs for upload. --- doc/push_github | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/push_github b/doc/push_github index e6cfb92f..e13fcaf7 100755 --- a/doc/push_github +++ b/doc/push_github @@ -4,6 +4,12 @@ if ! [[ -d ../.git ]]; then exit fi +installed_ver=`python -c "import scikits.image; print scikits.image.__version__"` +if [ $installed_ver = "unbuilt-dev" ]; then + echo "Please build the scikit before generating the docs." + exit 1 +fi + # Get current branch ref=$(git symbolic-ref HEAD 2> /dev/null) branch=${ref#refs/heads/}