summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132020-01-22 16:49:59 +0530
committerrahulp132020-01-22 16:49:59 +0530
commita84748e23e825936d5a6c5aaabb202c97808e046 (patch)
tree0364d999766ace81e3fbeb47fa6503cd381f9e89
parentb1ccf66f234f4540d966732eb8e11e6ca26aa940 (diff)
downloadnghdl-a84748e23e825936d5a6c5aaabb202c97808e046.tar.gz
nghdl-a84748e23e825936d5a6c5aaabb202c97808e046.tar.bz2
nghdl-a84748e23e825936d5a6c5aaabb202c97808e046.zip
update installers
-rwxr-xr-xDebian/Ubuntu 14.04/install-nghdl.sh14
-rwxr-xr-xDebian/Ubuntu 16.04/install-nghdl.sh14
-rwxr-xr-xDebian/Ubuntu 18.04/install-nghdl.sh16
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