lazarus/docs/xml/make_all_skel.sh
mattias 4dda95ce6e made scripts posix
git-svn-id: trunk@4557 -
2003-09-02 21:11:58 +00:00

26 lines
477 B
Bash

#!/usr/bin/env bash
#
# Author: Mattias Gaertner
#
# This script calls makeskel on every unit in the current directory and creates
# an fpdoc xml file for every unit.
set -x
set -e
MakeSkel=$1
if [ -z $MakeSkel ]; then
MakeSkel=makeskel
fi
# create unit list
UnitList=`echo *.pp *.pas`
for unit in $UnitList; do
OutFile=`echo $unit | sed -e 's/\.pp\b/\.xml/g' -e 's/\.pas\b/\.xml/g'`
$MakeSkel --input=$unit' -Fiinclude' --package=lcl --output=$OutFile
done
# end.