Changeset 402 in MondoRescue for branches/stable/tools/livwww


Ignore:
Timestamp:
Feb 17, 2006, 7:05:06 PM (14 years ago)
Author:
bcornec
Message:
  • RPM build for mondo doc recoded
  • Tag for documentation, man pages
  • Include a patch from SuSE RPMs for mondo
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/livwww

    r401 r402  
    88# Please replace with your destination
    99#
     10
     11
    1012LOCALDIR=/var/www/html/mondo
    1113LOCALDOC=/var/www/html/mondo-doc
     
    1820if [ "$1" = "-f" ]; then
    1921        force=1
     22        optsvn=""
    2023        shift
     24else
     25        optsvn="--force"
    2126fi
    2227
     
    4045cd ${BASE}/svn
    4146
    42 rm -rf $LOCALDIR
    43 svn export ${VER}/website $LOCALDIR
     47if [ $force -eq 1 ]; then
     48    echo "Purging $LOCALDIR"
     49    rm -rf $LOCALDIR
     50fi
    4451
    45 rm -rf $LOCALDOC
    46 svn export ${VER}/documentation $LOCALDOC
     52svn export $optsvn ${VER}/website $LOCALDIR
     53
     54if [ $force -eq 1 ]; then
     55    echo "Purging $LOCALDOC"
     56    rm -rf $LOCALDOC
     57fi
     58
     59svn export $optsvn ${VER}/documentation $LOCALDOC
     60
     61#
     62# Version handling
     63#
     64$TOOLHOME/expandver $LOCALDIR/top.shtml $LOCALDOC/mondorescue-howto.sgml $LOCALDOC/*.8; do
     65
    4766cd $LOCALDOC
    4867make -f Makefile.howto
     
    5574perl -pi -e 's~<A HREF[=./A-z0-9"]*/man1/[^<]*>([A-z0-9]*)</A>~$1~g' $LOCALDIR/docs/*.8.html
    5675perl -pi -e 's~/index.html~/index.shtml~' $LOCALDIR/docs/*.8.html
    57 #
    58 # Version handling
    59 #
    60 perl -pi -e "s~VVV-rRRR~${VER}-r${REVISION}~g" $LOCALDIR/head.shtml
    61 
    6276find $LOCALDIR -type d | xargs chmod 755
    6377find $LOCALDIR -type f | xargs chmod 644
     78
    6479cd $LOCALDIR
     80#
     81# Some links for the Web site
     82#
     83ln -sf /var/www/html/mediawiki .
     84ln -sf /var/www/html/admin .
     85
    6586if [ _"$1" == _"" ]; then
    6687        exit 0
Note: See TracChangeset for help on using the changeset viewer.