alpar@2320: #!/bin/bash alpar@2320: alpar@2322: ( alpar@2322: REPOSITORY=https://lemon.cs.elte.hu/svn/hugo/trunk alpar@2322: WORKINGCOPY=trunk alpar@2320: alpar@2322: ROOT=$PWD alpar@2322: LASTREV_FILE=$ROOT/last-rev alpar@2322: LASTREV=`cat $LASTREV_FILE` alpar@2322: alpar@2322: svn up $WORKINGCOPY alpar@2322: alpar@2322: REV=`svn info $WORKINGCOPY|grep 'Revision:'|cut -f 2 -d ' '` alpar@2322: LOGFILE=${ROOT}/logs/${REV}.log alpar@2322: alpar@2322: function make-dir () { alpar@2322: if [ ! -d $1 ]; then alpar@2322: mkdir $1 alpar@2322: fi alpar@2322: } alpar@2322: alpar@2322: alpar@2322: if [ $# -eq 0 ]; then alpar@2322: # echo $LASTREV $REV alpar@2322: if [ $LASTREV -lt $REV ]; then alpar@2322: cd $WORKINGCOPY alpar@2322: autoreconf -vi alpar@2322: ./configure alpar@2322: make doc alpar@2322: cd .. alpar@2322: rm -rf latest-doc alpar@2322: cp -r $WORKINGCOPY/doc/html latest-doc alpar@2322: echo $REV >$LASTREV_FILE alpar@2322: fi alpar@2322: alpar@2322: elif [ $1 = '--help' ]; then alpar@2322: echo 'Usage:' alpar@2322: echo ' doxymake --init' alpar@2322: echo ' doxymake --help' alpar@2322: echo ' doxymake' alpar@2322: exit 1 alpar@2322: elif [ $1 = '--init' ]; then alpar@2322: make-dir logs alpar@2322: rm -rf $WORKINGCOPY alpar@2322: svn co $REPOSITORY $WORKINGCOPY alpar@2322: echo '0' >$LASTREV_FILE alpar@2322: exit 0 alpar@2320: fi alpar@2322: ) >/dev/null 2>&1