File: build_lcl_chm.sh

package info (click to toggle)
lazarus 1.2.4%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 170,220 kB
  • ctags: 115,165
  • sloc: pascal: 1,386,898; xml: 257,878; sh: 2,935; java: 603; makefile: 549; perl: 297; sql: 174; ansic: 137
file content (28 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# basic script to do a lcl.chm build.   Marco van de Voort dec 2011

# assumes a fpcdocs checkout where "fixdocs.sh" has been succesfully run.
# on 1.7GHz Core2 laptop single thread 6:26 minutes. Don't be impatient :-)

set -e

# set to path to FPC docs dir. Default assume it is on the same level as the lazarus checkout
if [ -z "$FPCDocDir" ]; then
  FPCDocDir=../../../fpcdocs
fi
FPCDocDirEXP=$(cd "$FPCDocDir" ; pwd)

if [ -d "$FPCDocDirEXP" ]
then
echo FPCDOCS dir is $FPCDocDirEXP
else
echo FPCDOCS dir $FPCDocDir expanded to $FPCDocDirEXP and was not found.
exit 1
fi

export HTMLFMT=chm
bash build_lazutils_html.sh fpdoc `pwd`/locallclfooter.xml $FPCDocDirEXP 1>lazutilsoutput.log 2>lazutilserror.log
bash build_lcl_html.sh fpdoc `pwd`/locallclfooter.xml $FPCDocDirEXP 1>lcloutput.log 2>lclerror.log

# end.