Module: synfig Branch: genete_master Commit: 2dad2793a54098ce7c65a8796c8ddf2fc7569f24 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=2dad2793a54098ce7c65a8796c8ddf2fc7569f24
Author: Konstantin Dmitriev <ksee.zelga...@gmail.com> Date: Fri Jun 19 22:35:10 2009 +0700 Script to generate API documentation and send it to sf.net. Uses doxygen to generate API docs from source code and pushing them on http://synfig.sourceforge.net/api/ via rsync. --- autobuild/api.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/autobuild/api.sh b/autobuild/api.sh new file mode 100755 index 0000000..6a43267 --- /dev/null +++ b/autobuild/api.sh @@ -0,0 +1,72 @@ +#!/bin/sh +# +# Script to generate API documentation and send it to sf.net +# +# Copyright 2009 Konstantin Dmitriev +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. + +USERNAME=your_username #set this to your sf.net username to publish api + #(you need privilegies for that) + +export HTMLDIR=~/synfig/api/html +export SOURCEDIR=~/synfig/api/source + +set -e + +if [ ! -d $SOURCEDIR ]; then + mkdir -p `dirname $SOURCEDIR` + cd `dirname $SOURCEDIR` + git clone git://synfig.git.sourceforge.net/gitroot/synfig `basename $SOURCEDIR` +fi + +getversion(){ + VERSION=`cat configure| egrep PACKAGE_VERSION=\'` + VERSION=${VERSION#*\'} + VERSION=${VERSION%\'} +} + +mkdir -p $HTMLDIR + +cd $SOURCEDIR +git fetch +git checkout remotes/origin/master + +for module in ETL synfig-core synfig-studio; do +cd $module/trunk +autoreconf --install --force || sed -i 's/^AC_CONFIG_SUBDIRS/# AC_CONFIG_SUBDIRS/' && autoreconf --install --force +getversion +cp -f doxygen.cfg.in doxygen.cfg +sed -i "s/@VERSION@/$VERSION/" doxygen.cfg +sed -i "s/@PACKAGE@/$module/" doxygen.cfg +doxygen doxygen.cfg +rm -rf $HTMLDIR/$module +mv doc/html $HTMLDIR/$module +cp $SOURCEDIR/$module/trunk/doxygen.cfg $HTMLDIR/$module +cd ../.. +done + +#index.html +DATE=`date -R` +cat > $HTMLDIR/index.html <<EOF +<html><head><title>ETL, synfig, synfigstudio API docs</title></head> +<body> +<h1>ETL, synfig, synfigstudio API docs</h1> +<ul> +<li><a href="ETL/">ETL</a></li> +<li><a href="synfig/">synfig</a></li> +<li><a href="synfigstudio/">synfigstudio</a></li> +</ul> +<p>Generated on: $DATE.</p> +</body></html> +EOF + +#beep (because we asking password) +echo -e "\a"; sleep 0.2; echo -e "\a"; sleep 0.2; echo -e "\a" + +#push to sf.net +rsync -avP -e ssh $HTMLDIR/ $USERNAME,syn...@web.sourceforge.net:htdocs/api/ + ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl