From 82e647c9e1b079df50e374364636a943c16d774d Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 01:51:30 +0300 Subject: [PATCH] /hookup: util to handle temporary installation --- docs/getting_and_compiling.txt | 2 +- hookup | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 hookup diff --git a/docs/getting_and_compiling.txt b/docs/getting_and_compiling.txt index 4ca93cf..21475e8 100644 --- a/docs/getting_and_compiling.txt +++ b/docs/getting_and_compiling.txt @@ -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 diff --git a/hookup b/hookup new file mode 100755 index 0000000..fa15256 --- /dev/null +++ b/hookup @@ -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/)