3 if test "$#" -eq 0; then
4 echo "phpdoc to doxygen conversion"
6 echo "Usage: $0 [-i] [-e sed-expression] file1 file2 file3 filen..."
8 echo " -i provides in-place editing of the files given as arguments"
9 echo " -e lets you add additional sed expressions to the command line"
11 echo "If run without '-i', output is sent to stdout"
15 sed -e '/^[\t ]*\*[\t ]*@name/d' \
16 -e 's/^\([\t ]*\*\)[\t ]\+/\1 /' \
17 -e 's/^\(\t*\)[\t ]*\*/\1 */' \
18 -e 's/^\([\t ]*\*\)[\t ]*\(@[A-Za-z0-9_-]*\)[\t ]*/\1 \2 /' \
19 -e 's/^\([\t ]*\*\)[\t ]*@desc[\t ]*\(.*\)/\1 \2/' \
20 -e 's/\(* @param\) [^$ ]*[\t ]*\(.*\)/\1 \2/' \
22 -e 's/^class[\t ]*\([^ {]*\)[\t ]*{/class \1\n{/' \