Changeset 400


Ignore:
Timestamp:
Feb 17, 2006, 2:26:49 PM (13 years ago)
Author:
bcornec
Message:

Improvements for man page generation (web links now correct)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/livwww

    r399 r400  
    88# Please replace with your destination
    99#
    10 DESTDIR=/var/www/html/mondo
     10LOCALDIR=/var/www/html/mondo
    1111DESTUSER=apache
    1212MONDODIR=/mondo/www/html/mondo
    1313TESTDIR=/mondo/www/html/test
    1414
    15 /sbin/ifconfig | grep -q 10.3.3 2>&1 > /dev/null
     15/sbin/ifconfig | grep -q 10.3 2>&1 > /dev/null
    1616if [ $? = 0 ]; then
    1717    DESTMACH=mondo.hpintelco.org
     
    3030. $TOOLHOME/common-env
    3131
    32 rm -rf $DESTDIR
    33 cp -a ${BASE}/svn/${VER}/website $DESTDIR
     32rm -rf $LOCALDIR
     33cp -a ${BASE}/svn/${VER}/website $LOCALDIR
    3434(cd ${BASE}/svn/${VER}/documentation ; make)
    35 mkdir -p $DESTDIR/docs
    36 cp -a ${BASE}/svn/${VER}/documentation/* $DESTDIR/docs
    37 find $DESTDIR -type d | xargs chmod 755
    38 find $DESTDIR -type f | xargs chmod 644
    39 cd $DESTDIR
     35mkdir -p $LOCALDIR/docs
     36cp -a ${BASE}/svn/${VER}/documentation/* $LOCALDIR/docs
     37#
     38# Man pages corrections
     39#
     40perl -pi -e 's~/man8/~/docs/~g' $LOCALDIR/docs/*.8.html
     41perl -pi -e 's~<A HREF[=./A-z0-9"]*/man1/[^<]*>([A-z0-9]*)</A>~$1~g' $LOCALDIR/docs/*.8.html
     42perl -pi -e 's~/index.html~/index.shtml~' $LOCALDIR/docs/*.8.html
     43find $LOCALDIR -type d | xargs chmod 755
     44find $LOCALDIR -type f | xargs chmod 644
     45cd $LOCALDIR
    4046if [ _"$1" == _"" ]; then
    4147        exit 0
     
    4753    fi
    4854fi
    49 tar cfj /tmp/mondo-www.tz2 .
     55tar cfz /tmp/mondo-www.tgz .
    5056ssh ${DESTUSER}@${DESTMACH} "rm -rf ${DESTDIR} ; mkdir ${DESTDIR}"
    51 scp /tmp/mondo-www.tz2 ${DESTUSER}@${DESTMACH}:/tmp
    52 rm -f /tmp/mondo-www.tz2
    53 ssh ${DESTUSER}@${DESTMACH} "cd ${DESTDIR} ; tar xfj /tmp/mondo-www.tz2"
     57scp /tmp/mondo-www.tgz ${DESTUSER}@${DESTMACH}:/tmp
     58rm -f /tmp/mondo-www.tgz
     59ssh ${DESTUSER}@${DESTMACH} "cd ${DESTDIR} ; tar xfz /tmp/mondo-www.tgz"
Note: See TracChangeset for help on using the changeset viewer.