#!/bin/sh set -e if test -n "$CUBE"; then echo "$CUBE" elif test -f /src/setup.py; then python /src/setup.py --name | sed 's@cubicweb-@@g' else >&2 echo "unable to deternine the cube name. You have to set it by the CUBE environment variable" exit 1 fi