Commit 1c51cb8d authored by Maxime Perrotin's avatar Maxime Perrotin

ensure unicity of files in command line to asn1.exe

the ellidiss gui sometimes calls taste-update-dataview with duplicates, in
particular when working with component import/export
parent d3ab56ea
......@@ -97,6 +97,11 @@ fi
DATAVIEW+=" $(taste-config --prefix)/share/taste-types/taste-types.asn"
# Make sure all parameters are unique
DATAVIEW="$(echo ${DATAVIEW} | tr ' ' '\n' | sort | uniq | tr '\n' ' ')"
COMMAND="asn2aadlPlus -f ${DATAVIEW} ${AADL} -aadlv2 2>&1 > >(uniq >&2)"
echo -e "${INFO} Command:
# can asn2aadlPlus with a call to uniq to filter out duplicate outputs
# due to multiple calls to the ASN.1 compiler
#asn2aadlPlus $DATAVIEW "$AADL" -aadlv2 2>&1 | uniq >&2
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