Changeset 3737

Show
Ignore:
Timestamp:
04/13/08 18:39:30 (8 months ago)
Author:
tg
Message:

TCL man pages (section n)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/scripts/genhtman.sh

    r3637 r3737  
    3232 
    3333rm -rf $dd 
    34 mkdir -p $dd/{{man,cat}{1,2,3,3p,4,5,6,7,8,9},htman/pkgs} 
     34mkdir -p $dd/{{man,cat}{1,2,3,3p,4,5,6,7,8,9,n},htman/pkgs} 
    3535# copy over manual pages (source and catman): ordinary files and hardlinks 
    3636find $sd -type f -a \( -path \*/man\* -o -path \*/cat\* \) | while read f; do 
     
    5050        (*.8)           ln $f $dd/man8/ ;; 
    5151        (*.9)           ln $f $dd/man9/ ;; 
     52        (*.n)           ln $f $dd/mann/ ;; 
    5253        (*.1tbl)        tbl <$f >$dd/man1/${f%tbl} ;; 
    5354        (*.2tbl)        tbl <$f >$dd/man2/${f%tbl} ;; 
     
    7879        (*/cat8/*.0)    ln $f $dd/cat8/ ;; 
    7980        (*/cat9/*.0)    ln $f $dd/cat9/ ;; 
     81        (*/catn/*.0)    ln $f $dd/catn/ ;; 
    8082        (*)             print -u2 "file looks like manpage but ignored: ${f#$sd/}" 
    8183                        continue ;; 
     
    8789        t=$(readlink -f $f) 
    8890        case $t { 
    89         (*.[123456789]|*.3p) 
     91        (*.[123456789n]|*.3p) 
    9092                t=${t##*/} 
    9193                t=man${t##*.}/$t 
    9294                ;; 
    93         (*.[123456789]tbl) 
     95        (*.[123456789n]tbl) 
    9496                t=${t##*/} 
    9597                t=${t%tbl} 
    9698                t=man${t##*.}/$t 
    9799                ;; 
    98         (*.[123456789]eqn) 
     100        (*.[123456789n]eqn) 
    99101                t=${t##*/} 
    100102                t=${t%eqn} 
    101103                t=man${t##*.}/$t 
    102104                ;; 
    103         (*/cat[123456789]/*.0|*/cat3p/*.0) 
     105        (*/cat[123456789n]/*.0|*/cat3p/*.0) 
    104106                x=${t%/*} 
    105107                t=${t##*/} 
     
    111113        } 
    112114        case $f { 
    113         (*.[123456789]|*.3p) 
     115        (*.[123456789n]|*.3p) 
    114116                f=${f##*/} 
    115117                f=man${f##*.}/$f 
    116118                ;; 
    117         (*.[123456789]tbl) 
     119        (*.[123456789n]tbl) 
    118120                f=${f##*/} 
    119121                f=${f%tbl} 
    120122                f=man${f##*.}/$f 
    121123                ;; 
    122         (*.[123456789]eqn) 
     124        (*.[123456789n]eqn) 
    123125                f=${f##*/} 
    124126                f=${f%eqn} 
    125127                f=man${f##*.}/$f 
    126128                ;; 
    127         (*/cat[123456789]/*.0|*/cat3p/*.0) 
     129        (*/cat[123456789n]/*.0|*/cat3p/*.0) 
    128130                x=${f%/*} 
    129131                f=${f##*/} 
     
    159161 
    160162# convert manpages from source format to catman pages 
    161 for sect in 1 2 3 3p 4 5 6 7 8 9; do 
     163for sect in 1 2 3 3p 4 5 6 7 8 9 n; do 
    162164        cd $dd/man$sect 
    163165        for file in *; do