PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/docs/html/build_gtkintf_html.sh

http://github.com/graemeg/lazarus
Shell | 51 lines | 29 code | 11 blank | 11 comment | 3 complexity | 666955cda38b3efa53ecbc76313403ca MD5 | raw file
 1#!/usr/bin/env bash
 2#
 3# Author: Mattias Gaertner
 4#
 5# Creates the fpdoc HTML output for the gtk interface
 6
 7set -e
 8
 9FPDoc=$1
10if [ -z $FPDoc ]; then
11  FPDoc=fpdoc
12fi
13
14PackageName=gtkinterface
15XMLSrcDir=../xml/lcl/interfaces/gtk/
16PasSrcDir=../../lcl/interfaces/gtk/
17InputFileList=inputfile.txt
18
19# create output directory
20mkdir -p $PackageName
21
22# create unit list
23cd $PasSrcDir
24UnitList=`echo *.pp *.pas | sed -e 's/\*.*\b//g'`
25cd -
26
27# create description file list
28DescrFiles=''
29for unit in $UnitList; do
30  ShortFile=${unit%.pp}
31  ShortFile=${ShortFile%.pas}
32  DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
33done
34
35# create input file list
36CurInputFileList=$PackageName/$InputFileList
37rm -f $CurInputFileList
38for unit in $UnitList; do
39  echo ../$PasSrcDir$unit -Fi../$PasSrcDir -dGTK1 >> $CurInputFileList
40done
41
42cd $PackageName
43$FPDoc $DescrFiles --input=@$InputFileList --content=$PackageName.cnt \
44  --import=../lcl/lcl.cnt,../lcl/ --package=$PackageName \
45  --format=html
46cd -
47  
48# --output=lcl/interfaces/gtk
49
50# end.
51