Ignore:
Timestamp:
05/10/2008 16:14:24 (4 years ago)
Author:
chris
Message:

Move parcel_* functions into BoxPlatform? package to share them with
other scripts.

Add a script to print the path to the current parcel directory, for
use in configure.ac to allow this to be placed in substitutions
(contrib/windows/installer/boxbackup.mpi in particular).

File:
1 copied

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/parcelpath.pl

    r1078 r2328  
    11#!perl 
    22 
     3unless (@ARGV == 2) 
     4{ 
     5        die "Usage: $0 <parcel-name> <target-os>\n"; 
     6} 
     7 
    38$basedir = $0; 
    4 $basedir =~ s/\\[^\\]*$//; 
    5 $basedir =~ s/\\[^\\]*$//; 
    6 $basedir =~ s/\\[^\\]*$//; 
    7 $basedir =~ s/\\[^\\]*$//; 
    8 $basedir =~ s/\\[^\\]*$//; 
     9$basedir =~ s|/.*||; 
     10$basedir .= "/.."; 
    911-d $basedir or die "$basedir: $!"; 
    1012chdir $basedir or die "$basedir: $!"; 
     13require "infrastructure/BoxPlatform.pm.in"; 
    1114 
    12 require "$basedir\\infrastructure\\BoxPlatform.pm.in"; 
    13  
    14 open VERSIONFILE, "> $basedir/lib/common/BoxVersion.h"  
    15         or die "BoxVersion.h: $!"; 
    16 print VERSIONFILE "#define BOX_VERSION \"$BoxPlatform::product_version\"\n"; 
    17 close VERSIONFILE; 
     15print BoxPlatform::parcel_dir(@ARGV) . "\n"; 
    1816 
    1917exit 0; 
Note: See TracChangeset for help on using the changeset viewer.