Ticket #176: bib2dox
File bib2dox, 542 bytes (added by , 16 years ago) |
---|
Line | |
---|---|
1 | #!/bin/sh |
2 | if [ $# -ne 1 ]; then |
3 | echo "Usage: `basename $0` filename.bib" 1>&2 |
4 | exit 1 |
5 | fi |
6 | |
7 | DOX_HEADER="\\\page references References" |
8 | HTML_TABLE="<table border=\"0\" cellspacing=\"5px\" width=\"100%\">" |
9 | |
10 | bibtex2html --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 |