You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2022/11/22 11:01:09 UTC
[couchdb-glazier] branch dummy-logfile-without-bom created (now b063300)
This is an automated email from the ASF dual-hosted git repository.
ronny pushed a change to branch dummy-logfile-without-bom
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git
at b063300 Create dummy logfile without BOM
This branch includes the following new commits:
new b063300 Create dummy logfile without BOM
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb-glazier] 01/01: Create dummy logfile without BOM
Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch dummy-logfile-without-bom
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git
commit b0633000562c49b8a0f915f130cd425f95dd48f8
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Tue Nov 22 12:01:04 2022 +0100
Create dummy logfile without BOM
Replace the Out-File cmdlet (creates file with BOM) with New-Item cmdlet to create a dummy log file.
---
bin/build_installer.ps1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/build_installer.ps1 b/bin/build_installer.ps1
index d528125..d5b37e0 100644
--- a/bin/build_installer.ps1
+++ b/bin/build_installer.ps1
@@ -50,7 +50,7 @@ Move-Item -Path "${CouchDB}\etc\vm.args" -Destination "${CouchDB}\etc\vm.args.di
-replace "^writer = stderr", "writer = file" |
Out-File "default.ini"
# WiX skips empty directories, so we create a dummy logfile
-Write-Output "New Log" | Out-File "${CouchDB}\var\log\couchdb.log"
+New-Item -Name "${CouchDB}\var\log\couchdb.log" -ItemType File
# Build our custom action.
Push-Location CustomAction