I need to do some pre-processing to a bib file that is generated by a reference manager before passing it to biblatex. So I have created a script to this and tried to automate the call to this script with latexmk.

Since add_cus_dep only handles extensions and not whole file names, I have tried something like this: