#! /bin/sh # # $Id: Xindex,v 10.25 2008/01/08 20:58:22 bostic Exp $ test -d $BDB_SRC -a -d $TARGET || { echo "Xindex: \$BDB_SRC or \$TARGET not set" exit 1 } # Build the HTML from the index. # $1 API Name # $2 API Directory name build() { echo '' echo '' echo "Berkeley DB: $1 API Index" echo '' echo '' echo '' echo '' echo "

$1 API Index

" echo "
" echo "" # The reference guide is done using the C_API, so we have to # copy references from it for the C++ API. (cat $BDB_SRC/docs_src/support/static.src $TARGET/$2/pindex.src; egrep '^__APIREL__/ref/|^__APIREL__/ref_xml/' \ $TARGET/api_c/pindex.src) | sort -u | sort -f -t@ +1 | sed -f $BDB_SRC/docs_src/support/html.sed | sed -e 's/__APIREL__/../' \ -e 's/\([^ ]\)@/\1 @/' \ -e 's/^\([^ ]*\) \([^@]*\)@\([^ ]*\)\(.*\)/
\2<\/td>\3<\/a>\4<\/td><\/tr>/' echo "
" echo "
" echo "

Copyright (c) 1996,2008 Oracle. All rights reserved." echo "" echo "" } [ -f $TARGET/api_c/pindex.src ] && build C api_c > $TARGET/api_c/c_pindex.html [ -f $TARGET/api_cxx/pindex.src ] && build C++ api_cxx > $TARGET/api_cxx/cxx_pindex.html [ -f $TARGET/api_tcl/pindex.src ] && build Tcl api_tcl > $TARGET/api_tcl/tcl_pindex.html exit 0