Add doc cmake targets (HTML, PDF, QtHelp, CHM, man)
make doc will build all of the above, except for CHM,
which needs manual preparation and can be built with
make doc-chm. See doc/scripts/README.rst for details.
We do our best to ensure to detect the required tools
before adding targets, so a build should always succeed.
Exception: On Debian and Ubuntu, the following packages are
required to build the PDF target (in addition to pdflatex
itself, which is autodetected):
* texlive-latex-recommended
* texlive-latex-extra
* texlive-fonts-recommended
If pdflatex is present, but those are not, the doc target
will fail.
Results can be found in $BUILDDIR/doc/$format.
2012-11-25 03:21:27 +04:00
|
|
|
#!/bin/sh
|
2014-02-24 14:08:58 +04:00
|
|
|
#
|
|
|
|
# Copyright (C) by Daniel Molkentin <danimo@owncloud.com>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# for more details.
|
|
|
|
#
|
|
|
|
|
Add doc cmake targets (HTML, PDF, QtHelp, CHM, man)
make doc will build all of the above, except for CHM,
which needs manual preparation and can be built with
make doc-chm. See doc/scripts/README.rst for details.
We do our best to ensure to detect the required tools
before adding targets, so a build should always succeed.
Exception: On Debian and Ubuntu, the following packages are
required to build the PDF target (in addition to pdflatex
itself, which is autodetected):
* texlive-latex-recommended
* texlive-latex-extra
* texlive-fonts-recommended
If pdflatex is present, but those are not, the doc target
will fail.
Results can be found in $BUILDDIR/doc/$format.
2012-11-25 03:21:27 +04:00
|
|
|
|
|
|
|
WINEPREFIX=${WINEPREFIX:=$HOME/.wine}
|
|
|
|
|
|
|
|
test -d "$WINEPREFIX" || wineprefixcreate
|
|
|
|
|
|
|
|
# Setup the registry
|
|
|
|
wine regedit htmlhelp.reg
|
|
|
|
|
|
|
|
# Install HTML Help Workshop
|
|
|
|
wget 'http://go.microsoft.com/fwlink/?LinkId=14188' -O htmlhelp.exe
|
|
|
|
wine htmlhelp.exe
|
|
|
|
|
|
|
|
# Install ITSS.DLL
|
|
|
|
cabextract -F hhupd.exe htmlhelp.exe
|
|
|
|
cabextract -F itircl.dll hhupd.exe
|
|
|
|
cabextract -F itss.dll hhupd.exe
|
|
|
|
cp -a itircl.dll "$WINEPREFIX/drive_c/windows/system32/"
|
|
|
|
cp -a itss.dll "$WINEPREFIX/drive_c/windows/system32/"
|
|
|
|
wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itircl.dll'
|
|
|
|
wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itss.dll'
|
|
|
|
|
|
|
|
# Install MFC40.DLL
|
|
|
|
wget -N http://activex.microsoft.com/controls/vc/mfc40.cab
|
|
|
|
cabextract -F mfc40.exe mfc40.cab
|
|
|
|
cabextract -F mfc40.dll mfc40.exe
|
|
|
|
cp -a mfc40.dll "$WINEPREFIX/drive_c/windows/system32/"
|