From ff3940387566d043499e5dfaf59fdda35e4463d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20=C3=96rtenberg?= Date: Fri, 14 Feb 2025 11:45:26 +0100 Subject: [PATCH] first install scripts, not working fully yet --- scripts/.gitignore | 1 + scripts/ghdl | 3 +++ scripts/install_docker_ghdl.sh | 4 ++++ scripts/install_gantry.sh | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100755 scripts/ghdl create mode 100755 scripts/install_docker_ghdl.sh create mode 100755 scripts/install_gantry.sh diff --git a/scripts/.gitignore b/scripts/.gitignore index 9d2b7ca..d665aea 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore @@ -5,3 +5,4 @@ lib lib64 pyvenv.cfg __pycache__ +gantry diff --git a/scripts/ghdl b/scripts/ghdl new file mode 100755 index 0000000..6d98a77 --- /dev/null +++ b/scripts/ghdl @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run -t -v /$(pwd):/src -w /src ghdl/ghdl:5.0.0-dev-gcc-ubuntu-24.04 bash -c "ghdl $@" diff --git a/scripts/install_docker_ghdl.sh b/scripts/install_docker_ghdl.sh new file mode 100755 index 0000000..a67f341 --- /dev/null +++ b/scripts/install_docker_ghdl.sh @@ -0,0 +1,4 @@ +#!/usr/bin/fish + +docker pull ghdl/ghdl:5.0.0-dev-gcc-ubuntu-24.04 +fish_add_path "$(pwd)" diff --git a/scripts/install_gantry.sh b/scripts/install_gantry.sh new file mode 100755 index 0000000..673ba6c --- /dev/null +++ b/scripts/install_gantry.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +PWD=$(pwd) +printf "#!/bin/bash \n$PWD/bin/python3 $PWD/gantry.py \$@" > "$PWD/gantry" +chmod +x "$PWD/gantry" +