diff --git a/bin/doi2bib b/bin/doi2bib new file mode 120000 index 0000000..fc24210 --- /dev/null +++ b/bin/doi2bib @@ -0,0 +1 @@ +../reporting/doi2bib \ No newline at end of file diff --git a/reporting/doi2bib b/reporting/doi2bib new file mode 100755 index 0000000..2fff905 --- /dev/null +++ b/reporting/doi2bib @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ -z "$1" ] +then echo Expecting doi code + exit +fi + +curl -LH "Accept: text/bibliography; style=bibtex" "http://dx.doi.org/$1"