summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/plain.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-06 00:30:47 +0000
committerKarl Berry <karl@freefriends.org>2010-07-06 00:30:47 +0000
commit4631b9a200935cb69b604b1d7995fb0d85b229f2 (patch)
treeb03258a2bf431479101a4fb0da8140bf8333125c /Master/texmf/asymptote/plain.asy
parent70c6e0a0899e6702c8ef39120dc725da1b9ab36c (diff)
asymptote 2.01
git-svn-id: svn://tug.org/texlive/trunk@19252 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/plain.asy')
-rw-r--r--Master/texmf/asymptote/plain.asy4
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf/asymptote/plain.asy b/Master/texmf/asymptote/plain.asy
index 4d0b4e566fb..76f77aaf52c 100644
--- a/Master/texmf/asymptote/plain.asy
+++ b/Master/texmf/asymptote/plain.asy
@@ -190,8 +190,7 @@ void usersetting()
// Conditionally process each file name in array s in a new environment.
void asy(string format, bool overwrite=false ... string[] s)
{
- for(int i=0; i < s.length; ++i) {
- string f=s[i];
+ for(string f : s) {
int n=rfind(f,".asy");
if(n != -1) f=erase(f,n,-1);
if(overwrite || error(input(f+"."+format,check=false))) {
@@ -201,6 +200,7 @@ void asy(string format, bool overwrite=false ... string[] s)
settings.outformat=format;
settings.interactiveView=false;
settings.batchView=false;
+ delete(outname()+"_"+".aux");
eval("defaultfilename=\""+f+"\"; import \""+f+
"\" as dummy; exitfunction()");
settings.outformat=outformat;