summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-08-11 18:17:47 (GMT)
committerFred Drake <fdrake@acm.org>1998-08-11 18:17:47 (GMT)
commitaf06a0b4ee9877192f7d5d2033c03bfe384123cc (patch)
treea3134fb78a263924eb6bcf3bd48ac70cb52a7363
parent211f22c1b150ede5fc49ef63ca62fabdbb85c811 (diff)
downloadcpython-af06a0b4ee9877192f7d5d2033c03bfe384123cc.zip
cpython-af06a0b4ee9877192f7d5d2033c03bfe384123cc.tar.gz
cpython-af06a0b4ee9877192f7d5d2033c03bfe384123cc.tar.bz2
Use Perl's rename() function instead of system(); there's no need for two
additional processes for each name change!
-rwxr-xr-xDoc/tools/node2label.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl
index 5cc54d6..a59d68e 100755
--- a/Doc/tools/node2label.pl
+++ b/Doc/tools/node2label.pl
@@ -51,6 +51,5 @@ while (<>) {
}
foreach $oldname (keys %newnames) {
-# or ln -s
- system("mv $oldname $newnames{$oldname}");
+ rename($oldname, $newnames{$oldname});
}