Commit 4e4f3236 authored by Théotime BOLLENGIER's avatar Théotime BOLLENGIER
Browse files

launch ArGen IDE from argen

parent c99f49e5
......@@ -83,6 +83,7 @@ Gem::Specification.new do |s|
'share/hdl_templates/eFPGA_vFPGA_wrapper_template.vhd',
'share/hdl_templates/IP_template.vhd',
'share/hdl_templates/WRAPPER_template.vhd',
'share/bash_completion/argen.bash-completion.sh',
'share/doc/VPR_User_Manual_7.0.pdf',
'ext/extconf.rb',
'ext/vpr/LICENSE',
......
# To get file completion with the argen command,
# this file should be writen as /etc/bash_completion.d/argen_ide
# this file should be writen as /etc/bash_completion.d/
__argen_completion()
{
......@@ -75,7 +75,6 @@ __argen_completion()
;;
ide)
COMPREPLY=($(compgen -f -o default -X '!*.ovrlpro' -- ${cur}))
COMPREPLY+=($(compgen -W '--help' -- ${cur}))
return
;;
place_and_route_viewer)
......
if `which argen_ide`.empty? then
begin
require 'argen_ide/version'
rescue LoadError
abort "ERROR: ArGen IDE is not installed.\n To install the IDE: \"gem install argen_ide\"\n https://gitlab.ensta-bretagne.fr/argen/argen_ide"
end
if ARGV.empty? then
Process.exec('argen_ide')
Process.exec('ruby', ArGenIDE::BIN_PATH)
else
Process.exec('argen_ide', *ARGV)
Process.exec('ruby', ArGenIDE::BIN_PATH, *ARGV)
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment