Fix correct commit hash for release 0.7.0 of openXC7
[dev-env-setup.git] / iverilog-install
1 #!/bin/bash
2 if [ "$EUID" -ne 0 ]
3 then echo "Please run as root using 'sudo bash'"
4 exit
5 fi
6
7 apt-get update -y
8 apt-get install -y git autoconf make g++ bison flex gperf libreadline6-dev
9
10 # change into $SUDO_USER home directory
11 cd /home/$SUDO_USER
12 mkdir -p src/iverilog
13 cd src/iverilog
14
15 git clone https://github.com/steveicarus/iverilog.git
16
17 cd iverilog
18 #git checkout v11_0
19 git checkout d8cb29f6e0 # works ok, better than v11_0 stable
20 sh autoconf.sh
21 ./configure --prefix=/usr/local/
22 make -j$(nproc)
23 make check
24 make install
25
26 cd /home/$SUDO_USER/src/iverilog
27 chown -R $SUDO_USER .
28 chgrp -R $SUDO_USER .
29