COIN-OR::LEMON - Graph Library

Changeset 2626:324cfbf66a12 in lemon-0.x for scripts/server-services


Ignore:
Timestamp:
10/23/08 18:49:06 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3511
Message:

Adapt the doc generation to the hg repo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/server-services/repodoc/make-doc

    r2403 r2626  
    33(
    44    export PATH=/usr/local/bin:$PATH
    5     REPOSITORY=https://lemon.cs.elte.hu/svn/lemon/trunk
    6     WORKINGCOPY=trunk
     5    REPOSITORY=http://lemon.cs.elte.hu/hg/lemon/
     6    WORKINGCOPY=lemon
    77
    88    ROOT=$PWD
    99    LASTREV_FILE=$ROOT/last-rev
    1010    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    
     11
     12    cd $WORKINGCOPY
     13    hg pull
     14    hg update
     15
     16    REV=`hg id -n`
     17
    2418    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            
     19        if [ $LASTREV -lt $REV ]; then
     20            # Delete autom4te.cache in order to get configure regenerated
     21            # and the new revision number propagated into it.
     22            rm -rf autom4te.cache
     23            rm -rf doc/html
     24            autoreconf -vi
     25            ./configure
     26            make html
     27            cd ..
     28            rm -rf latest-doc
     29            cp -r $WORKINGCOPY/doc/html latest-doc
     30            echo $REV >$LASTREV_FILE
     31        fi
     32
    3733    elif [ $1 = '--help' ]; then
    38         echo 'Usage:'
    39         echo '   doxymake --init'
    40         echo '   doxymake --help'
    41         echo '   doxymake'
    42         exit 1
     34        echo 'Usage:'
     35        echo '   make-doc --init'
     36        echo '   make-doc --help'
     37        echo '   make-doc'
     38        exit 1
    4339    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
     40        rm -rf $WORKINGCOPY
     41        hg clone $REPOSITORY $WORKINGCOPY
     42        echo '0' >$LASTREV_FILE
     43        exit 0
    4944    fi
    5045 ) >/dev/null 2>&1
Note: See TracChangeset for help on using the changeset viewer.