I want all of the PDFs in my directory /pdfs to be included with one command, so that I only have to put new pdfs in the directory and not having to worry about actually implementing them each time I compile. Like so:
\includepdf[pages=-]{pdfs/some.pdf}
\includepdf[pages=-]{pdfs/random.pdf}
\includepdf[pages=-]{pdfs/pdf.pdf}
\includepdf[pages=-]{pdfs/files.pdf}
...
But rather just have for instance
\includepdf[pages=-]{pdfs/*}
at the end of my document.
What I currently do is run the command pdfjam * -o all_files.pdf in the directory, delete the new files, and have \includepdf[pages=-]{pdfs/all_files.pdf} in my document. But this is a somewhat cumbersome and mindless exercise I feel there should be an easier way.
Any ideas?