/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. set -e
  7. FPDoc=$1
  8. if [ -z $FPDoc ]; then
  9. FPDoc=fpdoc
  10. fi
  11. PackageName=gtkinterface
  12. XMLSrcDir=../xml/lcl/interfaces/gtk/
  13. PasSrcDir=../../lcl/interfaces/gtk/
  14. InputFileList=inputfile.txt
  15. # create output directory
  16. mkdir -p $PackageName
  17. # create unit list
  18. cd $PasSrcDir
  19. UnitList=`echo *.pp *.pas | sed -e 's/\*.*\b//g'`
  20. cd -
  21. # create description file list
  22. DescrFiles=''
  23. for unit in $UnitList; do
  24. ShortFile=${unit%.pp}
  25. ShortFile=${ShortFile%.pas}
  26. DescrFiles="$DescrFiles --descr=../$XMLSrcDir$ShortFile.xml"
  27. done
  28. # create input file list
  29. CurInputFileList=$PackageName/$InputFileList
  30. rm -f $CurInputFileList
  31. for unit in $UnitList; do
  32. echo ../$PasSrcDir$unit -Fi../$PasSrcDir -dGTK1 >> $CurInputFileList
  33. done
  34. cd $PackageName
  35. $FPDoc $DescrFiles --input=@$InputFileList --content=$PackageName.cnt \
  36. --import=../lcl/lcl.cnt,../lcl/ --package=$PackageName \
  37. --format=html
  38. cd -
  39. # --output=lcl/interfaces/gtk
  40. # end.