Install the TLA+ toolchain as CLI tools
This commit is contained in:
parent
f7642dc396
commit
f193d626ab
2 changed files with 17 additions and 0 deletions
|
|
@ -22,3 +22,16 @@ else
|
||||||
cd "$(systemd-path user-state-private)" || exit
|
cd "$(systemd-path user-state-private)" || exit
|
||||||
git clone https://github.com/simonthum/git-sync
|
git clone https://github.com/simonthum/git-sync
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
REPO_DIR="$(systemd-path user-state-private)"/tla-bin
|
||||||
|
if [ -d "${REPO_DIR}" ]
|
||||||
|
then
|
||||||
|
git -C "${REPO_DIR}" pull || true
|
||||||
|
else
|
||||||
|
cd "$(systemd-path user-state-private)" || exit
|
||||||
|
git clone https://github.com/pmer/tla-bin
|
||||||
|
fi
|
||||||
|
cd "${REPO_DIR}" && \
|
||||||
|
./download_or_update_tla.sh && \
|
||||||
|
./install.sh "$(systemd-path user-shared)"/tla-bin && \
|
||||||
|
chmod --recursive o-rwx "$(systemd-path user-shared)"/tla-bin
|
||||||
|
|
|
||||||
4
.profile
4
.profile
|
|
@ -39,6 +39,10 @@ if [ -d "$(go env GOBIN)" ] ; then
|
||||||
PATH="$(go env GOBIN):$PATH"
|
PATH="$(go env GOBIN):$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "$(systemd-path user-shared)"/tla-bin/bin ] ; then
|
||||||
|
PATH="$(systemd-path user-shared)/tla-bin/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the git-sync script
|
# Install the git-sync script
|
||||||
if [ -d "$(systemd-path user-state-private)"/git-sync ] ; then
|
if [ -d "$(systemd-path user-state-private)"/git-sync ] ; then
|
||||||
PATH="$(systemd-path user-state-private)/git-sync:$PATH"
|
PATH="$(systemd-path user-state-private)/git-sync:$PATH"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue