gnucash-on-windows master: Change handling of html help workshop installation failure.
John Ralls
jralls at code.gnucash.org
Sun Apr 21 13:34:16 EDT 2019
Updated via https://github.com/Gnucash/gnucash-on-windows/commit/fe22df60 (commit)
from https://github.com/Gnucash/gnucash-on-windows/commit/fa0ddaff (commit)
commit fe22df601c6d5b181db35052c5b17ce3e70fd417
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Apr 21 10:16:35 2019 -0700
Change handling of html help workshop installation failure.
Instead of bailing out, print a more detailed error and continue with
the rest of the script.
diff --git a/setup-mingw64.ps1 b/setup-mingw64.ps1
index 4bb4061..d99bd69 100644
--- a/setup-mingw64.ps1
+++ b/setup-mingw64.ps1
@@ -246,13 +246,20 @@ if (!(test-path -path $htmlhelp_h)) {
$installed_hh = get-item -path "hkcu:\SOFTWARE\Microsoft\HTML Help Workshop" | foreach-object{$_.GetValue("InstallDir")}
}
$installed_hh = make-unixpath -path $installed_hh
- bash-command -command "cp $installed_hh/include/htmlhelp.h $mingw_path/include"
+ if (!installed_hh) {
+ Write-Host @"
+****** ERROR ****
+There was an error installing HTML Help Workshop. This will prevent building the documentation. If you didn't before, run setup-mingw64.ps1 in a PowerShell instance with Administrative priviledge. If you did that already, you may need to install HTML Help Workshop by hand.
+****************
+"@
+ } else {
+ bash-command -command "cp $installed_hh/include/htmlhelp.h $mingw_path/include"
- bash-command -command "$mingw_bin/gendef $hhctrl_ocx - > $mingw_path/lib/htmlhelp.def"
- bash-command -command "$mingw_bin/dlltool -k -d $mingw_path/lib/htmlhelp.def -l $mingw_path/lib/libhtmlhelp.a"
+ bash-command -command "$mingw_bin/gendef $hhctrl_ocx - > $mingw_path/lib/htmlhelp.def"
+ bash-command -command "$mingw_bin/dlltool -k -d $mingw_path/lib/htmlhelp.def -l $mingw_path/lib/libhtmlhelp.a"
+ }
if (!(test-path -path $htmlhelp_h)) {
Write-Host "HTML Help Workshop isn't correctly installed."
- exit
}
}
Write-Host @"
Summary of changes:
setup-mingw64.ps1 | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
More information about the gnucash-changes
mailing list