author | deba |
Wed, 21 Feb 2007 13:51:45 +0000 | |
changeset 2378 | c479eab00a18 |
parent 2320 | 4e8ecce96b12 |
child 2403 | b8f65d8528e1 |
permissions | -rw-r--r-- |
1 #!/bin/bash
3 (
4 REPOSITORY=https://lemon.cs.elte.hu/svn/hugo/trunk
5 WORKINGCOPY=trunk
7 ROOT=$PWD
8 LASTREV_FILE=$ROOT/last-rev
9 LASTREV=`cat $LASTREV_FILE`
11 svn up $WORKINGCOPY
13 REV=`svn info $WORKINGCOPY|grep 'Revision:'|cut -f 2 -d ' '`
14 LOGFILE=${ROOT}/logs/${REV}.log
16 function make-dir () {
17 if [ ! -d $1 ]; then
18 mkdir $1
19 fi
20 }
23 if [ $# -eq 0 ]; then
24 # echo $LASTREV $REV
25 if [ $LASTREV -lt $REV ]; then
26 cd $WORKINGCOPY
27 autoreconf -vi
28 ./configure
29 make doc
30 cd ..
31 rm -rf latest-doc
32 cp -r $WORKINGCOPY/doc/html latest-doc
33 echo $REV >$LASTREV_FILE
34 fi
36 elif [ $1 = '--help' ]; then
37 echo 'Usage:'
38 echo ' doxymake --init'
39 echo ' doxymake --help'
40 echo ' doxymake'
41 exit 1
42 elif [ $1 = '--init' ]; then
43 make-dir logs
44 rm -rf $WORKINGCOPY
45 svn co $REPOSITORY $WORKINGCOPY
46 echo '0' >$LASTREV_FILE
47 exit 0
48 fi
49 ) >/dev/null 2>&1