source: box/trunk/infrastructure/parcelpath.pl @ 2328

Revision 2328, 306 bytes checked in by chris, 3 years ago (diff)

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).

Line 
1#!perl
2
3unless (@ARGV == 2)
4{
5        die "Usage: $0 <parcel-name> <target-os>\n";
6}
7
8$basedir = $0;
9$basedir =~ s|/.*||;
10$basedir .= "/..";
11-d $basedir or die "$basedir: $!";
12chdir $basedir or die "$basedir: $!";
13require "infrastructure/BoxPlatform.pm.in";
14
15print BoxPlatform::parcel_dir(@ARGV) . "\n";
16
17exit 0;
Note: See TracBrowser for help on using the repository browser.