diff options
author | Karl Berry <karl@freefriends.org> | 2010-04-19 23:59:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-04-19 23:59:33 +0000 |
commit | dddce3148a2bc785603576b18ffcf72d39adbe47 (patch) | |
tree | 14f4c79ef11bcf0820a8d4ff2ab0c5ac009c365c /Build/source/utils/asymptote/runfile.in | |
parent | a01e51b01f5819b6091af48cdca581e9f2a9282e (diff) |
asy 1.93
git-svn-id: svn://tug.org/texlive/trunk@17934 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runfile.in')
-rw-r--r-- | Build/source/utils/asymptote/runfile.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Build/source/utils/asymptote/runfile.in b/Build/source/utils/asymptote/runfile.in index fa85c86e182..872eb6fae4f 100644 --- a/Build/source/utils/asymptote/runfile.in +++ b/Build/source/utils/asymptote/runfile.in @@ -327,22 +327,22 @@ callable* :readSet(file *f) } // Delete file named s. -Int delete(string *s) +Int delete(string s) { - checkLocal(*s); - Int rc=unlink(s->c_str()); + s=outpath(s); + Int rc=unlink(s.c_str()); if(rc == 0 && verbose > 0) - cout << "Deleted " << *s << endl; + cout << "Deleted " << s << endl; return rc; } // Rename file "from" to file "to". -Int rename(string *from, string *to) +Int rename(string from, string to) { - checkLocal(*from); - checkLocal(*to); - Int rc=rename(from->c_str(),to->c_str()); + from=outpath(from); + to=outpath(to); + Int rc=rename(from.c_str(),to.c_str()); if(rc == 0 && verbose > 0) - cout << "Renamed " << *from << " to " << *to << endl; + cout << "Renamed " << from << " to " << to << endl; return rc; } |