summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-04-16 11:05:33 +0000
committerChris Wilson <chris+github@qwirx.com>2011-04-16 11:05:33 +0000
commit1a11d3a8d66ddae7b8013b1a33404b580a89e62d (patch)
tree646349e4946eb1441e5fdfb4ec1ddd1c9a693e53 /infrastructure
parent8008e2935eda8b0f3058bdeeb7d4f6763ff46472 (diff)
Substitute variables in boxbackup.mpi.in to build a valid InstallJammer
config file for use with MSVC.
Diffstat (limited to 'infrastructure')
-rw-r--r--infrastructure/msvc/fake-config.sub.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/infrastructure/msvc/fake-config.sub.pl b/infrastructure/msvc/fake-config.sub.pl
new file mode 100644
index 00000000..fa9b6839
--- /dev/null
+++ b/infrastructure/msvc/fake-config.sub.pl
@@ -0,0 +1,18 @@
+#!perl
+
+use strict;
+use warnings;
+use Cwd;
+
+require "infrastructure\\BoxPlatform.pm.in";
+my $wd = getcwd();
+my $dummy = $BoxPlatform::product_version;
+
+while(<>)
+{
+ s|\@build_dir@|$wd|;
+ s|\@client_parcel_dir@|$wd/Debug|;
+ s|\@box_version@|$BoxPlatform::product_version|;
+ m|[^@](@[^@]+@)| and die "Unknown variable: $1";
+ print;
+} \ No newline at end of file