Check that scikit is built before generating docs for upload.

This commit is contained in:
Stefan van der Walt
2009-11-01 13:14:56 +02:00
parent 0c80e474a5
commit d6a4ec89c1
+6
View File
@@ -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/}