COIN-OR::LEMON - Graph Library

Ticket #176: bib2dox

File bib2dox, 542 bytes (added by Peter Kovacs, 16 years ago)
Line 
1#!/bin/sh
2if [ $# -ne 1  ]; then
3        echo "Usage: `basename $0` filename.bib" 1>&2
4        exit 1
5fi
6
7DOX_HEADER="\\\page references References"
8HTML_TABLE="<table border=\"0\" cellspacing=\"5px\" width=\"100%\">"
9
10bibtex2html --style alpha --sort-as-bibtex\
11            --no-abstract --no-keywords\
12            --nodoc --no-header --nobibsource\
13            --ignore-errors --quiet --output -\
14            --footer "*/" $1\
15  | sed "s|<table[^>]*>|/**\n$DOX_HEADER\n\n$HTML_TABLE|"\
16  | sed "s|^\*/$|\n*/\n|"\
17  > `basename $1 .bib`.dox