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