Changeset 3621
- Timestamp:
- 10/23/07 00:27:36 (1 year ago)
- Files:
-
- trunk/freewrt/mk/pkg-bottom.mk (modified) (1 diff)
- trunk/freewrt/scripts/genhtman.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/mk/pkg-bottom.mk
r3619 r3621 237 237 done 238 238 ifeq (${FWRT_MANPAGES},y) 239 cd ${WRKDIR}/wman; pax -rw htm ${BIN_DIR}/239 cd ${WRKDIR}/wman; pax -rw htman ${BIN_DIR}/ 240 240 endif 241 241 touch ${_IPKGS_COOKIE} trunk/freewrt/scripts/genhtman.sh
r3619 r3621 32 32 33 33 rm -rf $dd 34 mkdir -p $dd/{{man,cat}{1,2,3,3p,4,5,6,7,8,9},htm /pkgs}34 mkdir -p $dd/{{man,cat}{1,2,3,3p,4,5,6,7,8,9},htman/pkgs} 35 35 # copy over manual pages (source and catman): ordinary files and hardlinks 36 36 find $sd -type f -a \( -path \*/man\* -o -path \*/cat\* \) | while read f; do … … 176 176 177 177 # convert all catman pages to HTML 178 cd $dd; convert_all . ./htm 178 cd $dd; convert_all . ./htman 179 179 180 180 # generate an index page for the package … … 184 184 print "<h1>FreeWRT $3 package manual</h1> 185 185 <p>The $3 package comes with the following manual pages:</p><ul>" 186 (cd $dd/htm ; find man* -name \*.htm) | sort -f | while read file; do186 (cd $dd/htman; find man* -name \*.htm) | sort -f | while read file; do 187 187 bn=${file%.htm} 188 188 sect=${file#man} … … 193 193 output_footer | \ 194 194 sed -e '/<tt>/s</tt>& and <tt>$Id$&' 195 } >$dd/htm /pkgs/$3.htm195 } >$dd/htman/pkgs/$3.htm 196 196 197 197 exit 0


