--- tools/dev/install_files.pl 2009-03-11 00:35:20.000000000 +0100
+++ tools/dev/install_files.pl 2009-04-17 14:34:25.000000000 +0200
@@ -217,7 +217,7 @@
# as it is typically done with automake installed packages. If there
# is a use case to make this configurable we'll add a seperate
# --pkgconfigdir option.
- $dest = File::Spec->catdir( $options{libdir}, 'pkgconfig', $parrotdir, $dest );
+ $dest = File::Spec->catdir( $options{libdir}, 'pkgconfig', $dest );
}
elsif ( /^compilers/ ) {
$dest =~ s/^compilers/languages/;
@@ -292,6 +292,16 @@
else {
next unless -e $src;
next if $^O eq 'cygwin' and -e "$src.exe"; # stat works, copy not
+ if (-l $src) {
+ # check if the system supports symbolic linking
+ use Config;
+ if ($Config{d_symlink} && $Config{d_readlink}) {
+ # copy as symbolic link
+ symlink(readlink($src), $dest);
+ print "$dest\n";
+ next;
+ }
+ }
copy( $src, $dest ) or die "copy $src to $dest: $!\n";
print "$dest\n";
}