| 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 | |
|---|
| 3 | unless (@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: $!"; |
|---|
| 12 | chdir $basedir or die "$basedir: $!"; |
|---|
| 13 | require "infrastructure/BoxPlatform.pm.in"; |
|---|
| 14 | |
|---|
| 15 | print BoxPlatform::parcel_dir(@ARGV) . "\n"; |
|---|
| 16 | |
|---|
| 17 | exit 0; |
|---|
Note: See
TracBrowser
for help on using the repository browser.