mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
added script to create html docs for gtk-interface
git-svn-id: trunk@4304 -
This commit is contained in:
parent
9dea2912b1
commit
bc2d5602a2
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -195,6 +195,7 @@ designer/taborderdlg.pas svneol=native#text/pascal
|
||||
docs/ExtendingTheIDE.txt svneol=native#text/plain
|
||||
docs/LazarusIDEInternals.pdf -text svneol=unset#application/pdf
|
||||
docs/Packages.txt svneol=native#text/plain
|
||||
docs/html/update_gtkintf_html.sh -text svneol=native#application/x-sh
|
||||
docs/html/update_lcl_html.sh -text svneol=native#application/x-sh
|
||||
docs/xml/lcl/actnlist.xml svneol=native#text/xml
|
||||
docs/xml/lcl/allunits.xml svneol=native#text/xml
|
||||
|
41
docs/html/update_gtkintf_html.sh
Normal file
41
docs/html/update_gtkintf_html.sh
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author: Mattias Gaertner
|
||||
#
|
||||
# Creates the fpdoc HTML output for the gtk interface
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
FPDoc=$1
|
||||
if [ -z $FPDoc ]; then
|
||||
FPDoc=fpdoc
|
||||
fi
|
||||
|
||||
XMLSrcDir=../xml/lcl/interfaces/gtk/
|
||||
PasSrcDir=../../lcl/interfaces/gtk/
|
||||
InputFileList=inputfile.txt
|
||||
|
||||
# create unit list
|
||||
cd $PasSrcDir
|
||||
UnitList=`echo *.pp *.pas | sed -e 's/\*.*\b//g'`
|
||||
cd -
|
||||
|
||||
# create description file list
|
||||
DescrFiles=''
|
||||
for unit in $UnitList; do
|
||||
ShortFile=`echo $unit | sed -e 's/\.pp\b//g' -e 's/\.pas\b//g'`
|
||||
DescrFiles="$DescrFiles --descr=$XMLSrcDir$ShortFile.xml"
|
||||
done
|
||||
|
||||
# create input file list
|
||||
rm -f $InputFileList
|
||||
for unit in $UnitList; do
|
||||
echo $PasSrcDir$unit -dGTK1 >> $InputFileList
|
||||
done
|
||||
|
||||
$FPDoc $DescrFiles --input=@$InputFileList --content=gtkinterface.cnt \
|
||||
--import=lcl.cnt,../lcl/ --package=gtkinterface --format=html
|
||||
|
||||
# end.
|
||||
|
@ -2,6 +2,7 @@
|
||||
#
|
||||
# Author: Mattias Gaertner
|
||||
#
|
||||
# Creates the fpdoc HTML output for the LCL
|
||||
|
||||
set -x
|
||||
set -e
|
||||
@ -17,7 +18,6 @@ InputFileList=inputfile.txt
|
||||
|
||||
# create unit list
|
||||
cd $PasSrcDir
|
||||
#UnitList='buttons.pp menus.pp'
|
||||
UnitList=`echo *.pp *.pas`
|
||||
cd -
|
||||
|
||||
@ -34,7 +34,8 @@ for unit in $UnitList; do
|
||||
echo $PasSrcDir$unit -Fi${PasSrcDir}include >> $InputFileList
|
||||
done
|
||||
|
||||
$FPDoc $DescrFiles --input=@$InputFileList --content --package=lcl --format=html
|
||||
$FPDoc $DescrFiles --input=@$InputFileList --content=lcl.cnt --package=lcl \
|
||||
--format=html
|
||||
|
||||
# end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user