| Revision 2925,
348 bytes
checked in by chris, 13 months ago
(diff) |
|
Substitute variables in boxbackup.mpi.in to build a valid InstallJammer?
config file for use with MSVC.
|
| Line | |
|---|
| 1 | #!perl |
|---|
| 2 | |
|---|
| 3 | use strict; |
|---|
| 4 | use warnings; |
|---|
| 5 | use Cwd; |
|---|
| 6 | |
|---|
| 7 | require "infrastructure\\BoxPlatform.pm.in"; |
|---|
| 8 | my $wd = getcwd(); |
|---|
| 9 | my $dummy = $BoxPlatform::product_version; |
|---|
| 10 | |
|---|
| 11 | while(<>) |
|---|
| 12 | { |
|---|
| 13 | s|\@build_dir@|$wd|; |
|---|
| 14 | s|\@client_parcel_dir@|$wd/Debug|; |
|---|
| 15 | s|\@box_version@|$BoxPlatform::product_version|; |
|---|
| 16 | m|[^@](@[^@]+@)| and die "Unknown variable: $1"; |
|---|
| 17 | print; |
|---|
| 18 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.