mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
<gitroot>/tito wrapper
This makes executing of Tito-from-Git a bit more convenient.
This commit is contained in:
parent
c6c091177d
commit
6d09a79369
1 changed files with 14 additions and 0 deletions
14
tito
Executable file
14
tito
Executable file
|
@ -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()' "$@"
|
Loading…
Add table
Reference in a new issue