[tuxdroid-svn] r490 - firmware/tuxcore/trunk/doc
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-09-06 12:07:49
|
Author: jaguarondi Date: 2007-09-06 14:07:50 +0200 (Thu, 06 Sep 2007) New Revision: 490 Modified: firmware/tuxcore/trunk/doc/builddoc.sh Log: * Now builddoc.sh can be run from within the doc folder too. Some comments added. Modified: firmware/tuxcore/trunk/doc/builddoc.sh =================================================================== --- firmware/tuxcore/trunk/doc/builddoc.sh 2007-09-06 11:58:06 UTC (rev 489) +++ firmware/tuxcore/trunk/doc/builddoc.sh 2007-09-06 12:07:50 UTC (rev 490) @@ -4,8 +4,15 @@ # # Written by David Bourgeois <da...@ja...> # -# $Id:$ +# $Id$ +# This script should be started from the base folder, not the doc folder. +if [ $(basename $PWD) == "doc" ] +then + cd .. +fi + +# Get version number from version.h. if [ -f svnrev.h ] then VERSION_MAJ=$(sed -n "s/\#define VER_MAJOR *//p" version.h) @@ -15,6 +22,8 @@ echo "Error: version.h doesn't exist, aborting." exit 1 fi + +# Get revision number and whether we generate the documentation of a tag. if [ -f svnrev.h ] then REVISION=$(sed -n "s/\#define SVN_REV\> *//p" svnrev.h) |