1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/server-services/repodoc/make-doc Thu Nov 30 16:40:09 2006 +0000
1.3 @@ -0,0 +1,48 @@
1.4 +#!/bin/bash
1.5 +
1.6 +REPOSITORY=https://lemon.cs.elte.hu/svn/hugo/trunk
1.7 +WORKINGCOPY=trunk
1.8 +
1.9 +ROOT=$PWD
1.10 +LASTREV_FILE=$ROOT/last-rev
1.11 +LASTREV=`cat $LASTREV_FILE`
1.12 +
1.13 +svn up $WORKINGCOPY
1.14 +
1.15 +REV=`svn info $WORKINGCOPY|grep 'Revision:'|cut -f 2 -d ' '`
1.16 +LOGFILE=${ROOT}/logs/${REV}.log
1.17 +
1.18 +function make-dir () {
1.19 + if [ ! -d $1 ]; then
1.20 + mkdir $1
1.21 + fi
1.22 +}
1.23 +
1.24 +
1.25 +if [ $# -eq 0 ]; then
1.26 + echo $LASTREV $REV
1.27 + if [ $LASTREV -lt $REV ]; then
1.28 + cd $WORKINGCOPY
1.29 + autoreconf -vi
1.30 + ./configure
1.31 + make doc
1.32 + cd ..
1.33 + rm -rf latest-doc
1.34 + cp -r $WORKINGCOPY/doc/html latest-doc
1.35 + echo $REV >$LASTREV_FILE
1.36 + fi
1.37 +
1.38 +elif [ $1 = '--help' ]; then
1.39 + echo 'Usage:'
1.40 + echo ' doxymake --init'
1.41 + echo ' doxymake --help'
1.42 + echo ' doxymake'
1.43 + exit 1
1.44 +elif [ $1 = '--init' ]; then
1.45 + make-dir logs
1.46 + rm -rf $WORKINGCOPY
1.47 + svn co $REPOSITORY $WORKINGCOPY
1.48 + echo '0' >$LASTREV_FILE
1.49 + exit 0
1.50 +fi
1.51 +