/hookup: util to handle temporary installation

This commit is contained in:
veclav talica 2024-10-08 01:51:30 +03:00
parent 5c91423fbb
commit 82e647c9e1
2 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
firstly, make sure to pull git-lfs references with: :git lfs fetch origin main:
install cmake and sdl2-dev packages in manner suitable to your distribution
add /tools/ directory to your $PATH, for example, with: PATH=$PATH:$(realpath ./tools/)
add /tools/ directory to your $PATH, for example, with :source hookup:
navigate to one of /apps/ folders for demos
run `twn build` to build
runnable apps should have the same name as app folder it is in

8
hookup Executable file
View File

@ -0,0 +1,8 @@
#!/bin/env sh
# hookup /tools/ to be usable no matter where
# usage: `source hookup`
set +e
# TODO: prevent double hooking
export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/tools/)