From 7c5a23f1ad0c54862d1b28423dbb87648d15c042 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Tue, 12 Jul 2022 15:07:14 +0100 Subject: [PATCH] tasyagle script more functional --- tasyagle-install | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tasyagle-install b/tasyagle-install index cf18d2c..e171330 100755 --- a/tasyagle-install +++ b/tasyagle-install @@ -1,9 +1,21 @@ #!/bin/sh -# DON'T USE YET, DRAFT +# Ensure common schroot packages have been installed +# ./install-hdl-apt-reqs -mkdir -p /home/$USER/src -cd /home/$USER/src +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +apt-get install -y default-jre-headless libncurses5 #libedit-dev + +mkdir -p /home/$SUDO_USER/src +cd /home/$SUDO_USER/src git clone https://gitlab.lip6.fr/vlsi-eda/tas-yagle.git cd tas-yagle ./build.sh + +cd /home/$SUDO_USER/src +chown -R $SUDO_USER . +chgrp -R $SUDO_USER . -- 2.30.2