#! /usr/bin/env perl

open(IN, "<$ENV{HOME}/Documents/Papers/bib/HOOMD-doc.bib") or die("No input file");
open(OUT, '>doc/user/HOOMD.bib');

$waiting = 0;
while (<IN>)
    {
    if (/^file/ || /^mendeley-tags/ || /^abstract/ || /^keywords/ || /^url/)
        {
        $waiting = 1;
        }
    if ($waiting)
        {
        if (/\}/)
            {
            $waiting = 0;
            next;
            }
        else
            {
            next;
            }
        }
    print OUT;
    }


Add script to auto-update the documentation bib file
Add script to auto-update the documentation bib file

Run perl data/scripts/update_bib.pl in the root of the repository to generate a new doc/user/HOOMD.bib file. Note: The source bib file comes from my Mendeley library, so this script won't work for anyone else.

refs: #226