提交 81c8ee09 编写于 作者: B Bodo Möller

Hopefully improved compatibility with earlier versions of Perl5.

Submitted by:
Reviewed by:
PR:
上级 0e88cb26
......@@ -24,7 +24,9 @@ chop($pwd);
my @pwd_path = split(/\//, $pwd);
my @to_path = ();
foreach my $dirname (@from_path) {
my $dirname;
foreach $dirname (@from_path) {
# In this loop, @to_path always is a relative path from
# @pwd_path (interpreted is an absolute path) to the original pwd.
......@@ -45,7 +47,8 @@ foreach my $dirname (@from_path) {
my $to = join('/', @to_path);
foreach my $file (@files) {
my $file;
foreach $file (@files) {
# print "ln -s $to/$file $from/$file\n";
symlink("$to/$file", "$from/$file");
print $file . " => $from/$file\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册