develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34479 - branches/pdd30install_stage3/tools/dev

From:
rurban
Date:
December 28, 2008 04:49
Subject:
[svn:parrot] r34479 - branches/pdd30install_stage3/tools/dev
Message ID:
20081228124913.8FBF7CB9F9@x12.develooper.com
Author: rurban
Date: Sun Dec 28 04:49:12 2008
New Revision: 34479

Modified:
   branches/pdd30install_stage3/tools/dev/install_files.pl

Log:
56544-install_files

Modified: branches/pdd30install_stage3/tools/dev/install_files.pl
==============================================================================
--- branches/pdd30install_stage3/tools/dev/install_files.pl	(original)
+++ branches/pdd30install_stage3/tools/dev/install_files.pl	Sun Dec 28 04:49:12 2008
@@ -126,7 +126,7 @@
     bindir      => '/usr/bin',
     libdir      => '/usr/lib',
     includedir  => '/usr/include',
-    docdir      => '/usr/share/doc',
+    docdir      => '/usr/share/doc/parrot',
     'dry-run'   => 0,
 );
 
@@ -189,6 +189,7 @@
     }
     elsif ( $meta{include} ) {
         $dest =~ s/^include//;
+        $dest =~ s/^src/parrot/;
         $dest = File::Spec->catdir( $options{includedir}, $dest );
     }
     elsif ( $meta{doc} ) {
@@ -197,14 +198,19 @@
     elsif ( $meta{pkgconfig} ) {
 
         # For the time being this is hardcoded as being installed under libdir
-        # as it is typically donw with automake installed packages.  If there
+        # 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', $dest );
     }
     else {
-        $dest =~ s/^runtime/lib/ if /\[library]/;
-        $dest = File::Spec->catdir( $options{prefix}, $dest );
+        $dest =~ s|^src/|lib/parrot/src/|;
+        next if $dest =~ /^compilers|config|language|tools/;
+        if (/^runtime/) {
+            $dest =~ s/^runtime/$options{libdir}/;
+        } else {
+            $dest = File::Spec->catdir( $options{prefix}, $dest );
+        }
     }
 
     $dest = File::Spec->catdir( $options{buildprefix}, $dest )
@@ -243,6 +249,7 @@
     }
     else {
         next unless -e $src;
+        next if $^O eq 'cygwin' and -e "$src.exe"; # cygwin stat works, but copy not
         copy( $src, $dest ) or die "copy $src to $dest: $!\n";
         print "$dest\n";
     }



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About