added script to create html docs for gtk-interface

git-svn-id: trunk@4304 -
This commit is contained in:
mattias 2003-06-24 10:37:28 +00:00
parent 9dea2912b1
commit bc2d5602a2
3 changed files with 45 additions and 2 deletions

1
.gitattributes vendored
View File

@ -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

View 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.

View File

@ -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.