Skip to content

Commit abe3993

Browse files
committed
Fix multiple issues of Maple interface during installation
1 parent 397756c commit abe3993

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

interfaces/msolve-to-maple-file-interface.mpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
# * Bruno Salvy */
2222

2323
##Repositories to adapt
24-
homedir:=kernelopts(homedir);
24+
homedir:=kernelopts(homedir):
2525
savelibname:=cat(homedir, "/libs/"):
26-
mladirname:=cat(homedir,"/libs/MSolve.mla");
26+
mladirname:=cat(homedir,"/libs/MSolve.mla"):
2727

2828
# Installation
2929
# Run maple once on this file (after adjusting the above repositories)
@@ -271,8 +271,7 @@ output, fd;
271271
opts):
272272
fclose(fd);
273273
lprint(str);
274-
error "There has been an issue in msolve computation (see
275-
/tmp/bug-call-msolve.mpl)";
274+
error "There has been an issue in msolve computation (see /tmp/bug-call-msolve.mpl)";
276275
end;
277276

278277
RemoveFiles(fname1, fname2);
@@ -964,11 +963,12 @@ end:
964963

965964
end module:
966965

966+
ssystem(cat("rm -f ", mladirname)):
967967
libname:=savelibname,libname:
968968
ssystem(cat("mkdir -p ", savelibname)):
969-
ssystem(cat("rm ", mladirname)):
970969
march(`create`, mladirname);
971970
savelib(`MSolve`);
971+
printf("Installed MSolve package into %s\n", mladirname):
972972

973973

974974
# #Input data

0 commit comments

Comments
 (0)