[Lemon-commits] alpar: r3096 - hugo/trunk/scripts/server-services/repodoc

Lemon SVN svn at lemon.cs.elte.hu
Thu Nov 30 17:40:10 CET 2006


Author: alpar
Date: Thu Nov 30 17:40:09 2006
New Revision: 3096

Added:
   hugo/trunk/scripts/server-services/repodoc/
   hugo/trunk/scripts/server-services/repodoc/make-doc

Log:
Automatic doc generation from the SVN trunk

Added: hugo/trunk/scripts/server-services/repodoc/make-doc
==============================================================================
--- (empty file)
+++ hugo/trunk/scripts/server-services/repodoc/make-doc	Thu Nov 30 17:40:09 2006
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+REPOSITORY=https://lemon.cs.elte.hu/svn/hugo/trunk
+WORKINGCOPY=trunk
+
+ROOT=$PWD
+LASTREV_FILE=$ROOT/last-rev
+LASTREV=`cat $LASTREV_FILE`
+
+svn up $WORKINGCOPY
+
+REV=`svn info $WORKINGCOPY|grep 'Revision:'|cut -f 2 -d ' '`
+LOGFILE=${ROOT}/logs/${REV}.log
+
+function make-dir () {
+    if [ ! -d $1 ]; then
+	mkdir $1
+    fi
+}
+
+
+if [ $# -eq 0 ]; then
+    echo $LASTREV $REV
+    if [ $LASTREV -lt $REV ]; then
+	cd $WORKINGCOPY
+	autoreconf -vi
+	./configure
+	make doc
+	cd ..
+	rm -rf latest-doc
+	cp -r $WORKINGCOPY/doc/html latest-doc
+	echo $REV >$LASTREV_FILE
+    fi
+
+elif [ $1 = '--help' ]; then
+    echo 'Usage:'
+    echo '   doxymake --init'
+    echo '   doxymake --help'
+    echo '   doxymake'
+    exit 1
+elif [ $1 = '--init' ]; then
+    make-dir logs
+    rm -rf $WORKINGCOPY
+    svn co $REPOSITORY $WORKINGCOPY
+    echo '0' >$LASTREV_FILE
+    exit 0
+fi
+



More information about the Lemon-commits mailing list