Commit 103d1e9e authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Revert "for MORA branch, don't delete adb and .c files from asn1scc"

This reverts commit 8d96d503.
parent f3f6a9de
...@@ -52,7 +52,7 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str, ...@@ -52,7 +52,7 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
("mono " if sys.platform.startswith('linux') else "") + ("mono " if sys.platform.startswith('linux') else "") +
"\"{}\" -typePrefix asn1Scc -Ada {} -o \"".format(asn1SccPath, extraFlags) + "\"{}\" -typePrefix asn1Scc -Ada {} -o \"".format(asn1SccPath, extraFlags) +
outputDir + "\" \"" + "\" \"".join(asnFiles) + "\"") outputDir + "\" \"" + "\" \"".join(asnFiles) + "\"")
# os.system("rm -f \"" + outputDir + "\"/*.adb") os.system("rm -f \"" + outputDir + "\"/*.adb")
def OnBasic(unused_nodeTypename: str, unused_node: AsnBasicNode, unused_leafTypeDict: AST_Leaftypes) -> None: def OnBasic(unused_nodeTypename: str, unused_node: AsnBasicNode, unused_leafTypeDict: AST_Leaftypes) -> None:
......
...@@ -49,12 +49,12 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str, ...@@ -49,12 +49,12 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
("mono " if sys.platform.startswith('linux') else "") + ("mono " if sys.platform.startswith('linux') else "") +
"\"{}\" -typePrefix asn1Scc -c -uPER -o \"".format(asn1SccPath) + "\"{}\" -typePrefix asn1Scc -c -uPER -o \"".format(asn1SccPath) +
outputDir + "\" \"" + "\" \"".join(asnFiles) + "\"") outputDir + "\" \"" + "\" \"".join(asnFiles) + "\"")
# cmd = 'rm -f ' cmd = 'rm -f '
# for i in ['real.c', 'asn1crt.c', 'acn.c']: for i in ['real.c', 'asn1crt.c', 'acn.c']:
# cmd += ' "' + outputDir + '"/' + i cmd += ' "' + outputDir + '"/' + i
# os.system(cmd) os.system(cmd)
# for tmp in asnFiles: for tmp in asnFiles:
# os.system("rm -f \"" + outputDir + os.sep + os.path.basename(os.path.splitext(tmp)[0]) + ".c\"") os.system("rm -f \"" + outputDir + os.sep + os.path.basename(os.path.splitext(tmp)[0]) + ".c\"")
def OnBasic(unused_nodeTypename: str, unused_node: AsnBasicNode, unused_leafTypeDict: AST_Leaftypes) -> None: def OnBasic(unused_nodeTypename: str, unused_node: AsnBasicNode, unused_leafTypeDict: AST_Leaftypes) -> None:
......
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