Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taste-setup
Commits
33e6fa06
Commit
33e6fa06
authored
Jul 03, 2017
by
Maxime Perrotin
Browse files
Add MSC handler scripts
parent
2760fd3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
misc/helper-scripts/taste-create-msc
0 → 100755
View file @
33e6fa06
#!/bin/bash -e
# TASTE MSC Editor
# Create a new MSC file for a given Provided interface of a function
if
[
-t
0
]
;
then
COLORON
=
"
\e
[1m
\e
[32m"
REDCOLORON
=
"
\e
[1m
\e
[31m"
COLOROFF
=
"
\e
[0m"
else
COLORON
=
""
REDCOLORON
=
""
COLOROFF
=
""
fi
INFO
=
"
${
COLORON
}
[INFO]
${
COLOROFF
}
"
ERROR
=
"
${
REDCOLORON
}
[ERROR]
${
COLOROFF
}
"
FUNC_NAME
=
$1
shift
PI_NAME
=
$1
shift
MSC_FILENAME
=
$1
shift
echo
-e
"
${
INFO
}
Creating new MSC..."
echo
-e
"
${
INFO
}
Function:
${
FUNC_NAME
}
PI:
${
PI_NAME
}
Output:
${
MSC_FILENAME
}
"
EDITOR
=
taste-msc-editor
echo
'msc testcase;
end testcase;
'
>
$MSC_FILENAME
if
[
-z
$NONINTERACTIVE
]
then
$EDITOR
$MSC_FILENAME
fi
if
[
-z
$NONINTERACTIVE
]
then
echo
-e
"
${
INFO
}
MSC created"
echo
-e
"
${
INFO
}
Run taste-edit-msc
${
MSC_FILENAME
}
to edit"
fi
misc/helper-scripts/taste-edit-msc
0 → 100755
View file @
33e6fa06
#!/bin/bash -e
# TASTE MSC Editor
# Edit a MSC file
if
[
-t
0
]
;
then
COLORON
=
"
\e
[1m
\e
[32m"
REDCOLORON
=
"
\e
[1m
\e
[31m"
COLOROFF
=
"
\e
[0m"
else
COLORON
=
""
REDCOLORON
=
""
COLOROFF
=
""
fi
INFO
=
"
${
COLORON
}
[INFO]
${
COLOROFF
}
"
ERROR
=
"
${
REDCOLORON
}
[ERROR]
${
COLOROFF
}
"
MSC_FILENAME
=
$1
echo
-e
"
${
INFO
}
Opening MSC Editor..."
echo
-e
"
${
INFO
}
Filename:
${
MSC_FILENAME
}
"
EDITOR
=
taste-msc-editor
if
[
-z
$NONINTERACTIVE
]
then
$EDITOR
$MSC_FILENAME
fi
misc/helper-scripts/taste-generate-skeletons
View file @
33e6fa06
...
...
@@ -10,9 +10,9 @@ if [ ! -f "$1" ]
then
if
[
-f
InterfaceView.aadl
]
then
INTERFACEVIEW
=
InterfaceView.aadl
INTERFACEVIEW
=
InterfaceView.aadl
else
echo
'Error: interface view not found
echo
'Error: interface view not found
Usage: [FORCE=1] taste-generate-skeletons [InterfaceView.aadl] [output-directory]'
exit
-1
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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