2012-10-05 14:58:09 +00:00
|
|
|
#!/bin/sh
|
2014-03-30 11:56:12 +00:00
|
|
|
poezio_dir=$(dirname "$0")
|
2014-11-02 19:06:16 +00:00
|
|
|
VENV="poezio-venv"
|
2010-02-01 20:28:33 +00:00
|
|
|
|
2014-03-30 11:56:12 +00:00
|
|
|
if [ -d "$poezio_dir/.git" ]
|
2014-02-22 13:27:31 +00:00
|
|
|
then
|
2014-03-30 11:56:12 +00:00
|
|
|
args=$(git --git-dir="$poezio_dir/.git" show --format='%h %ci' | head -n1)
|
2014-02-22 13:27:31 +00:00
|
|
|
else
|
|
|
|
args="0.8.3-dev"
|
|
|
|
fi
|
2014-11-02 19:06:16 +00:00
|
|
|
|
|
|
|
if [ -e "$poezio_dir/$VENV" ]
|
|
|
|
then
|
|
|
|
PYTHON3="$poezio_dir/$VENV/bin/python3"
|
|
|
|
else
|
|
|
|
echo ""
|
|
|
|
echo "WARNING: Not using the up-to-date launch format"
|
|
|
|
echo "Run ./update.sh again to create a virtualenv with the deps"
|
|
|
|
echo "(or ignore this message if you don't want to)"
|
|
|
|
echo ""
|
|
|
|
PYTHON3=python3
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec "$PYTHON3" "$poezio_dir/src/poezio.py" -v "$args" "$@"
|
2011-02-26 13:16:19 +00:00
|
|
|
|