diff options
-rw-r--r-- | infrastructure/msvc/fake-config.sub.pl | 18 | ||||
-rw-r--r-- | win32.bat | 3 |
2 files changed, 21 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 @@ -36,3 +36,6 @@ cd .\lib\server & perl ./../../lib/common/makeexception.pl.in ServerException.tx cd ..\..\
perl -pe 's/@PERL@/perl/' ./test/bbackupd/testfiles/bbackupd.conf.in > .\test\bbackupd\testfiles\bbackupd.conf
+
+echo Generating InstallJammer configuration file
+perl infrastructure/msvc/fake-config.sub.pl ./contrib/windows/installer/boxbackup.mpi.in > ./contrib/windows/installer/boxbackup.mpi
|