Created
August 26, 2011 12:43
-
-
Save errordeveloper/1173326 to your computer and use it in GitHub Desktop.
Install Altera device libraries (.qda)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh -f | |
set quartus_version = "10.0" | |
set install_command = "/opt/Altera/${quartus_version}/quartus/bin/quartus_sh --qinstall" | |
set output_log = install-`date +%y%m%d@%H%M`-{$quartus_version}.log | |
set devices = "" | |
set counter = 0 | |
foreach d (*.qda) | |
set devices = "${devices} -qda ${d}" | |
@ counter ++ | |
end | |
echo -n "Do you want to install all $counter devices? (y/n): " | |
switch ($<) | |
case y*: | |
$install_command $devices | tee $output_log | |
breaksw | |
default: | |
breaksw | |
endsw | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment