mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
workaround to put fpdoc output in subdirectory
git-svn-id: trunk@6385 -
This commit is contained in:
parent
56666e6d35
commit
7efb2d0f67
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -380,7 +380,6 @@ docs/LCLMessages.txt svneol=native#text/plain
|
||||
docs/LazarusIDEInternals.pdf -text svneol=unset#application/pdf
|
||||
docs/Packages.txt svneol=native#text/plain
|
||||
docs/RemoteDebugging.txt svneol=native#text/plain
|
||||
docs/html/lcl/interfaces/gtk/README.txt svneol=native#text/plain
|
||||
docs/html/update_gtkintf_html.sh -text svneol=native#application/x-sh
|
||||
docs/html/update_html.sh -text svneol=native#application/x-sh
|
||||
docs/html/update_lcl_html.sh -text svneol=native#application/x-sh
|
||||
|
@ -1 +0,0 @@
|
||||
Output directory for the fpdoc HTML pages of the gtk interface
|
@ -12,10 +12,14 @@ if [ -z $FPDoc ]; then
|
||||
FPDoc=fpdoc
|
||||
fi
|
||||
|
||||
PackageName=gtkinterface
|
||||
XMLSrcDir=../xml/lcl/interfaces/gtk/
|
||||
PasSrcDir=../../lcl/interfaces/gtk/
|
||||
InputFileList=inputfile.txt
|
||||
|
||||
# create output directory
|
||||
mkdir -p $PackageName
|
||||
|
||||
# create unit list
|
||||
cd $PasSrcDir
|
||||
UnitList=`echo *.pp *.pas | sed -e 's/\*.*\b//g'`
|
||||
@ -25,18 +29,21 @@ cd -
|
||||
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"
|
||||
DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
|
||||
done
|
||||
|
||||
# create input file list
|
||||
rm -f $InputFileList
|
||||
CurInputFileList=$PackageName/$InputFileList
|
||||
rm -f $CurInputFileList
|
||||
for unit in $UnitList; do
|
||||
echo $PasSrcDir$unit -dGTK1 >> $InputFileList
|
||||
echo ../$PasSrcDir$unit -Fi../$PasSrcDir -dGTK1 >> $CurInputFileList
|
||||
done
|
||||
|
||||
$FPDoc $DescrFiles --input=@$InputFileList --content=gtkinterface.cnt \
|
||||
--import=lcl.cnt,../lcl/ --package=gtkinterface \
|
||||
cd $PackageName
|
||||
$FPDoc $DescrFiles --input=@$InputFileList --content=$PackageName.cnt \
|
||||
--import=../lcl/lcl.cnt,../lcl/ --package=$PackageName \
|
||||
--format=html
|
||||
cd -
|
||||
|
||||
# --output=lcl/interfaces/gtk
|
||||
|
||||
|
@ -12,10 +12,14 @@ if [ -z $FPDoc ]; then
|
||||
FPDoc=fpdoc
|
||||
fi
|
||||
|
||||
PackageName=lcl
|
||||
XMLSrcDir=../xml/lcl/
|
||||
PasSrcDir=../../lcl/
|
||||
InputFileList=inputfile.txt
|
||||
|
||||
# create output directory
|
||||
mkdir -p $PackageName
|
||||
|
||||
# create unit list
|
||||
cd $PasSrcDir
|
||||
UnitList=`echo *.pp *.pas`
|
||||
@ -25,17 +29,20 @@ cd -
|
||||
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"
|
||||
DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
|
||||
done
|
||||
|
||||
# create input file list
|
||||
rm -f $InputFileList
|
||||
CurInputFileList=$PackageName/$InputFileList
|
||||
rm -f $CurInputFileList
|
||||
for unit in $UnitList; do
|
||||
echo $PasSrcDir$unit -Fi${PasSrcDir}include >> $InputFileList
|
||||
echo ../${PasSrcDir}$unit -Fi../${PasSrcDir}include >> $CurInputFileList
|
||||
done
|
||||
|
||||
cd $PackageName
|
||||
$FPDoc $DescrFiles --input=@$InputFileList --content=lcl.cnt --package=lcl \
|
||||
--format=html
|
||||
cd -
|
||||
|
||||
# --output=lcl
|
||||
|
||||
|
@ -112,7 +112,7 @@ sub SearchDir(){
|
||||
print "rmdir ".$CurFullFile."\n";
|
||||
} else {
|
||||
if (!$opt{q}){
|
||||
print "unlink "$CurFullFile."\n";
|
||||
print "unlink ".$CurFullFile."\n";
|
||||
}
|
||||
}
|
||||
if($opt{x}){
|
||||
|
Loading…
Reference in New Issue
Block a user