legpub takes a file containing one or more Bibtex records and creates a pseudo-Bibtex record in the repository holding area. That record is then published.
legpub does this by simulating the submission process normally done manually by a publication author. As each entry in the holding area is published (by legpub, using pub), the administrator will receive notification by email.
legpub bibtex_filename
legpub foo.bib