diff options
author | rahulp13 | 2020-01-22 16:49:59 +0530 |
---|---|---|
committer | rahulp13 | 2020-01-22 16:49:59 +0530 |
commit | a84748e23e825936d5a6c5aaabb202c97808e046 (patch) | |
tree | 0364d999766ace81e3fbeb47fa6503cd381f9e89 | |
parent | b1ccf66f234f4540d966732eb8e11e6ca26aa940 (diff) | |
download | nghdl-a84748e23e825936d5a6c5aaabb202c97808e046.tar.gz nghdl-a84748e23e825936d5a6c5aaabb202c97808e046.tar.bz2 nghdl-a84748e23e825936d5a6c5aaabb202c97808e046.zip |
update installers
-rwxr-xr-x | Debian/Ubuntu 14.04/install-nghdl.sh | 14 | ||||
-rwxr-xr-x | Debian/Ubuntu 16.04/install-nghdl.sh | 14 | ||||
-rwxr-xr-x | Debian/Ubuntu 18.04/install-nghdl.sh | 16 |
3 files changed, 34 insertions, 10 deletions
diff --git a/Debian/Ubuntu 14.04/install-nghdl.sh b/Debian/Ubuntu 14.04/install-nghdl.sh index 905897f..9de831f 100755 --- a/Debian/Ubuntu 14.04/install-nghdl.sh +++ b/Debian/Ubuntu 14.04/install-nghdl.sh @@ -14,7 +14,7 @@ # NOTES: --- # AUTHOR: Fahim Khan, Rahul Paknikar # ORGANIZATION: eSim, FOSSEE group at IIT Bombay -# CREATED: Monday 20 January 2020 16:30 +# CREATED: Wednesday 22 January 2020 16:30 # REVISION: --- #=============================================================================== @@ -88,18 +88,25 @@ function installDependency echo "Exiting installation..." exit 1 fi + sudo cp include/* /usr/local/include/ + #Make it accessible + sudo chmod 755 /usr/local/include/vpi_user.h if [ $? -ne 0 ]; then echo "Unable to install ghdl-0.36 LLVM (@include)" echo "Exiting installation..." exit 1 fi + sudo cp -r lib/* /usr/local/lib/ + #Make it accessible + sudo chmod -R 755 /usr/local/lib/ghdl/ if [ $? -ne 0 ]; then echo "Unable to install ghdl-0.36 LLVM (@lib)" echo "Exiting installation..." exit 1 fi + echo "Removing unused part of ghdl-0.36 LLVM..." rm -rf ../ghdl-0.36 echo "GHDL installed successfully......................." @@ -145,7 +152,7 @@ function installNgspice #dirty fix for adding patch to ngspice base code cp $src_dir/src/outitf.c $HOME/$ngspice/src/frontend - make + make -j$(nproc) make install if [ "$?" == 0 ];then echo "Removing previously installed Ngspice (if any)..." @@ -154,9 +161,10 @@ function installNgspice echo "Ngspice installed sucessfully................." echo "Adding softlink for the installed Ngspice....." + sudo rm /usr/bin/ngspice sudo ln -s $HOME/$ngspice/install_dir/bin/ngspice /usr/bin/ngspice if [ $? -ne 0 ];then - echo "Failed to add Ngspice softlink" + echo "Failed to add Ngspice softlink............" echo "Remove earlier installations at /usr/bin/ngspice and try again..." exit 1 else diff --git a/Debian/Ubuntu 16.04/install-nghdl.sh b/Debian/Ubuntu 16.04/install-nghdl.sh index 6080018..f1214c7 100755 --- a/Debian/Ubuntu 16.04/install-nghdl.sh +++ b/Debian/Ubuntu 16.04/install-nghdl.sh @@ -14,7 +14,7 @@ # NOTES: --- # AUTHOR: Fahim Khan, Rahul Paknikar # ORGANIZATION: eSim, FOSSEE group at IIT Bombay -# CREATED: Monday 20 January 2020 16:30 +# CREATED: Wednesday 22 January 2020 16:30 # REVISION: --- #=============================================================================== @@ -88,18 +88,25 @@ function installDependency echo "Exiting installation..." exit 1 fi + sudo cp include/* /usr/local/include/ + #Make it accessible + sudo chmod 755 /usr/local/include/vpi_user.h if [ $? -ne 0 ]; then echo "Unable to install ghdl-0.36 LLVM (@include)" echo "Exiting installation..." exit 1 fi + sudo cp -r lib/* /usr/local/lib/ + #Make it accessible + sudo chmod -R 755 /usr/local/lib/ghdl/ if [ $? -ne 0 ]; then echo "Unable to install ghdl-0.36 LLVM (@lib)" echo "Exiting installation..." exit 1 fi + echo "Removing unused part of ghdl-0.36 LLVM..." rm -rf ../ghdl-0.36 echo "GHDL installed successfully......................." @@ -145,7 +152,7 @@ function installNgspice #dirty fix for adding patch to ngspice base code cp $src_dir/src/outitf.c $HOME/$ngspice/src/frontend - make + make -j$(nproc) make install if [ "$?" == 0 ];then echo "Removing previously installed Ngspice (if any)..." @@ -154,9 +161,10 @@ function installNgspice echo "Ngspice installed sucessfully................." echo "Adding softlink for the installed Ngspice....." + sudo rm /usr/bin/ngspice sudo ln -s $HOME/$ngspice/install_dir/bin/ngspice /usr/bin/ngspice if [ $? -ne 0 ];then - echo "Failed to add Ngspice softlink" + echo "Failed to add Ngspice softlink............" echo "Remove earlier installations at /usr/bin/ngspice and try again..." exit 1 else diff --git a/Debian/Ubuntu 18.04/install-nghdl.sh b/Debian/Ubuntu 18.04/install-nghdl.sh index b3439ca..78da81f 100755 --- a/Debian/Ubuntu 18.04/install-nghdl.sh +++ b/Debian/Ubuntu 18.04/install-nghdl.sh @@ -14,7 +14,7 @@ # NOTES: --- # AUTHOR: Fahim Khan, Rahul Paknikar # ORGANIZATION: eSim, FOSSEE group at IIT Bombay -# CREATED: Monday 20 January 2020 16:30 +# CREATED: Wednesday 22 January 2020 16:30 # REVISION: --- #=============================================================================== @@ -96,18 +96,25 @@ function installDependency echo "Exiting installation..." exit 1 fi + sudo cp include/* /usr/local/include/ + #Make it accessible + sudo chmod 755 /usr/local/include/vpi_user.h if [ $? -ne 0 ]; then echo "Unable to install ghdl-0.36 LLVM (@include)" echo "Exiting installation..." exit 1 fi + sudo cp -r lib/* /usr/local/lib/ + #Make it accessible + sudo chmod -R 755 /usr/local/lib/ghdl/ if [ $? -ne 0 ]; then echo "Unable to install ghdl-0.36 LLVM (@lib)" echo "Exiting installation..." exit 1 fi + echo "Removing unused part of ghdl-0.36 LLVM..." rm -rf ../ghdl-0.36 echo "GHDL installed successfully......................." @@ -153,7 +160,7 @@ function installNgspice #dirty fix for adding patch to ngspice base code cp $src_dir/src/outitf.c $HOME/$ngspice/src/frontend - make + make -j$(nproc) make install if [ "$?" == 0 ];then echo "Removing previously installed Ngspice (if any)..." @@ -162,9 +169,10 @@ function installNgspice echo "Ngspice installed sucessfully................." echo "Adding softlink for the installed Ngspice....." + sudo rm /usr/bin/ngspice sudo ln -s $HOME/$ngspice/install_dir/bin/ngspice /usr/bin/ngspice if [ $? -ne 0 ];then - echo "Failed to add Ngspice softlink" + echo "Failed to add Ngspice softlink............" echo "Remove earlier installations at /usr/bin/ngspice and try again..." exit 1 else @@ -226,7 +234,7 @@ function createSoftLink exit 1 else #Make it executable - sudo chmod 755 /usr/bin/nghdl + sudo chmod 755 nghdl echo "Added softlink for NGHDL..............................." fi fi |