get-cube.sh 270 Bytes
Newer Older
Philippe Pepiot's avatar
Philippe Pepiot committed
1
2
3
4
5
6
7
8
9
10
11
12
#!/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