From 36fba5dba705aa1c2ab870521cc64384bc929977 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 21 Feb 2024 09:09:48 +0100 Subject: [PATCH] /tito wrapper This makes executing of Tito-from-Git a bit more convenient. --- tito | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tito diff --git a/tito b/tito new file mode 100755 index 00000000..0d9a4a29 --- /dev/null +++ b/tito @@ -0,0 +1,14 @@ +#! /bin/sh + +gitrootdir=$(readlink -f "$(dirname "$0")") +run_python=${PYTHON-python3} + +echo >&2 "\ +Warning: Running Tito from a git repository is not supported. +If you are not a developer working on Tito code, please install it properly +https://github.com/rpm-software-management/tito/blob/master/doc/index.md#install +" + +export PYTHONPATH +PYTHONPATH=$gitrootdir/src/${PYTHONPATH+:"$PYTHONPATH"} +exec $run_python -c 'from tito.cli import main; main()' "$@"