Skip to content

Commit

Permalink
doc: remove p2 dependency for doxygen, clean README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Apr 25, 2013
1 parent ca2a515 commit d481e66
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -51,3 +51,4 @@ readline.bundle
/doc/latex
/README.md
/doc/footer.inc
/tools/bisect*.sh
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -442,12 +442,14 @@ doxygen: doc/html/files.html
@perl -pe's/^ //;s/^~ /## ~ /;' README > README.md
@doc/footer.sh > doc/footer.inc
@doxygen doc/Doxyfile
@rm README.md

doc/html/files.html: ${SRC} core/*.h doc/Doxyfile doc/footer.sh bin/p2${EXE}
doc/html/files.html: ${SRC} core/*.h doc/Doxyfile doc/footer.sh Makefile
@${ECHO} DOXYGEN core
@perl -pe's/^ //;s/^~ /## ~ /;' README > README.md
doc/footer.sh > doc/footer.inc
@doxygen doc/Doxyfile 2>&1 |egrep -v " parameter 'P|self|cl'"
@rm README.md

# perl11.org only. needs doxygen redcloth global
website:
Expand Down
10 changes: 6 additions & 4 deletions doc/footer.sh
@@ -1,7 +1,9 @@
#!/bin/sh
cd bin
GENERATED=`date`
P2_VERSION=`perl -ane'/P2_VERSION/ && print $F[2]' core/p2.h`
POTION_DATE=`perl -ane'/POTION_DATE/ && print $F[2]' core/config.h`

echo '<hr class="footer"/><address class="footer"><small>'
echo Generated on `date` for `./p2 --version|cut -f1-3 -d' '`
echo ') by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.1.2 '
echo "Generated on $GENERATED for p2 $P2_VERSION (date=$POTION_DATE)"
echo 'by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.1.2 '
echo '</small></address></body></html>'
cd ..

0 comments on commit d481e66

Please sign in to comment.