COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/server-services/repodoc/make-doc @ 2320:4e8ecce96b12

Last change on this file since 2320:4e8ecce96b12 was 2320:4e8ecce96b12, checked in by Alpar Juttner, 18 years ago

Automatic doc generation from the SVN trunk

File size: 861 bytes
Line 
1#!/bin/bash
2
3REPOSITORY=https://lemon.cs.elte.hu/svn/hugo/trunk
4WORKINGCOPY=trunk
5
6ROOT=$PWD
7LASTREV_FILE=$ROOT/last-rev
8LASTREV=`cat $LASTREV_FILE`
9
10svn up $WORKINGCOPY
11
12REV=`svn info $WORKINGCOPY|grep 'Revision:'|cut -f 2 -d ' '`
13LOGFILE=${ROOT}/logs/${REV}.log
14
15function make-dir () {
16    if [ ! -d $1 ]; then
17        mkdir $1
18    fi
19}
20
21
22if [ $# -eq 0 ]; then
23    echo $LASTREV $REV
24    if [ $LASTREV -lt $REV ]; then
25        cd $WORKINGCOPY
26        autoreconf -vi
27        ./configure
28        make doc
29        cd ..
30        rm -rf latest-doc
31        cp -r $WORKINGCOPY/doc/html latest-doc
32        echo $REV >$LASTREV_FILE
33    fi
34
35elif [ $1 = '--help' ]; then
36    echo 'Usage:'
37    echo '   doxymake --init'
38    echo '   doxymake --help'
39    echo '   doxymake'
40    exit 1
41elif [ $1 = '--init' ]; then
42    make-dir logs
43    rm -rf $WORKINGCOPY
44    svn co $REPOSITORY $WORKINGCOPY
45    echo '0' >$LASTREV_FILE
46    exit 0
47fi
48
Note: See TracBrowser for help on using the repository browser.