Skip to content

Commit

Permalink
fix syntax for any no. of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Manika-EDB committed Aug 7, 2024
1 parent 4b04f88 commit add3373
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions server/scripts/windows/compile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ $env:Path = "$python_directory\lib;$openssl_directory\lib;$xml_directory\lib;$xs
$env:Path = "$python_directory\include;$openssl_directory\include;$xml_directory\include;$xslt_directory\include;$uuid_directory\include;$zlib_directory\include;$gettext_directory\include;$tcl_directory\include;$env:Path"
# Let's create an appropriate configuration file
$configuration = (Get-Content $source_directory/src/tools/msvc/config_default.pl)
$configuration = $configuration -replace 'icu => undef', "icu => '$icu_directory'"
$configuration = $configuration -replace 'nls => undef', "nls => '$gettext_directory'"
$configuration = $configuration -replace 'tcl => undef', "tcl => '$tcl_directory'"
$configuration = $configuration -replace 'perl => undef', "perl => '$perl_directory'"
$configuration = $configuration -replace 'python => undef', "python => '$python_directory'"
$configuration = $configuration -replace 'openssl => undef', "openssl => '$openssl_directory'"
$configuration = $configuration -replace 'uuid => undef', "uuid => '$uuid_directory'"
$configuration = $configuration -replace 'xml => undef', "xml => '$xml_directory'"
$configuration = $configuration -replace 'xslt => undef', "xslt => '$xslt_directory'"
$configuration = $configuration -replace 'zlib => undef', "zlib => '$zlib_directory'"
$configuration = $configuration -replace 'icu\s*=>\s*undef', "icu => '$icu_directory'"
$configuration = $configuration -replace 'nls\s*=>\s*undef', "nls => '$gettext_directory'"
$configuration = $configuration -replace 'tcl\s*=>\s*undef', "tcl => '$tcl_directory'"
$configuration = $configuration -replace 'perl\s*=>\s*undef', "perl => '$perl_directory'"
$configuration = $configuration -replace 'python\s*=>\s*undef', "python => '$python_directory'"
$configuration = $configuration -replace 'openssl\s*=>\s*undef', "openssl => '$openssl_directory'"
$configuration = $configuration -replace 'uuid\s*=>\s*undef', "uuid => '$uuid_directory'"
$configuration = $configuration -replace 'xml\s*=>\s*undef', "xml => '$xml_directory'"
$configuration = $configuration -replace 'xslt\s*=>\s*undef', "xslt => '$xslt_directory'"
$configuration = $configuration -replace 'zlib\s*=>\s*undef', "zlib => '$zlib_directory'"
Set-Content $source_directory/src/tools/msvc/config.pl $configuration

Write-Host "src/tools/msvc/config.pl"
Expand Down

0 comments on commit add3373

Please sign in to comment.