Skip to content

Instantly share code, notes, and snippets.

@errordeveloper
Created August 26, 2011 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save errordeveloper/1173326 to your computer and use it in GitHub Desktop.
Save errordeveloper/1173326 to your computer and use it in GitHub Desktop.
Install Altera device libraries (.qda)
#!/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