2012-10-05 14:58:09 +00:00
|
|
|
#!/bin/sh
|
2016-06-27 23:54:37 +01:00
|
|
|
cd $(dirname "$0")
|
2015-01-15 16:46:51 +01:00
|
|
|
if [ -z "$POEZIO_VENV" ]
|
|
|
|
then
|
|
|
|
POEZIO_VENV="poezio-venv"
|
|
|
|
fi
|
2010-02-01 20:28:33 +00:00
|
|
|
|
2018-08-19 23:02:39 +01:00
|
|
|
if [ -e .git ]
|
2014-02-22 14:27:31 +01:00
|
|
|
then
|
2016-06-27 23:54:37 +01:00
|
|
|
args=$(git show --format='%h %ci' | head -n1)
|
2014-02-22 14:27:31 +01:00
|
|
|
else
|
2018-08-19 23:07:07 +01:00
|
|
|
args="0.12-dev"
|
2014-02-22 14:27:31 +01:00
|
|
|
fi
|
2014-11-02 20:06:16 +01:00
|
|
|
|
2016-06-27 23:54:37 +01:00
|
|
|
if [ -e "$POEZIO_VENV" ]
|
2014-11-02 20:06:16 +01:00
|
|
|
then
|
2016-06-27 23:54:37 +01:00
|
|
|
PYTHON3="$POEZIO_VENV/bin/python3"
|
2014-11-02 20:06:16 +01:00
|
|
|
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
|
|
|
|
|
2018-08-13 22:38:01 +02:00
|
|
|
$PYTHON3 -c 'import sys;(print("Python 3.5 or newer is required") and exit(1)) if sys.version_info < (3, 5) else exit(0)' || exit 1
|
2019-02-24 15:41:16 +01:00
|
|
|
exec "$PYTHON3" -m poezio --custom-version "$args" "$@"
|
2011-02-26 14:16:19 +01:00
|
|
|
|