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