Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taste-setup
Commits
8b5c7ac9
Commit
8b5c7ac9
authored
Dec 19, 2021
by
Angel Perez Muñoz
Browse files
Add support for QgenC, QGenAda, and Simulink.
Sets the correct directory if Simulink (upper-case)
parent
71708802
Pipeline
#7938
passed with stage
in 16 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
misc/helper-scripts/taste-edit-code
View file @
8b5c7ac9
...
...
@@ -30,15 +30,22 @@ then
LANG
=
$1
FNAME
=
$2
else
FNAME
=
$
3
FNAME
=
$
2
# why 3, I have got some errors if it is $3.
fi
if
[[
$LANG
!=
"C"
&&
$LANG
!=
"Ada"
&&
$LANG
!=
"SDL"
&&
$LANG
!=
"CPP"
&&
$LANG
!=
"GUI"
&&
"
$LANG
"
!=
"Blackbox_Device"
]]
if
[[
$LANG
!=
"C"
&&
$LANG
!=
"Ada"
&&
$LANG
!=
"SDL"
&&
$LANG
!=
"CPP"
&&
$LANG
!=
"GUI"
&&
"
$LANG
"
!=
"Blackbox_Device"
&&
"
$LANG
"
!=
"QGenC"
&&
"
$LANG
"
!=
"QGenAda"
&&
"
$LANG
"
!=
"Simulink"
]]
then
echo
-e
"
${
ERROR
}
First argument must be C, CPP, Ada, SDL, GUI or Blackbox_C, and not
\"
$LANG
\"
"
exit
1
fi
# Simulink functions source and wrappers are in SIMULINK directory,
# in upper case.
if
[[
"
$LANG
"
==
"Simulink"
]]
then
LANG
=
$(
echo
${
LANG
^^
}
)
fi
# Check if the project works with kazoo. If so, use the makefile rule to edit the code
if
[[
-f
Makefile
&&
$(
grep
KAZOO Makefile
)
!=
""
]]
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment