I'd like to print the complete source code of my java project, which has multiple .java files in several packages (i.e. folders), many .properties files and many .xml files, and others.
I want to use \lstinputlisting from the listings package but I don't want to add these commands one by one to the document.
The alternative would be to write some script that generates a file with those \lstinputlisting commands for all files, however I'd rather want to know if such a program already exists.
find . -name "*.java" | awk '{print "\\lstinputlisting[style=java]{"$0"}";}' >javalistings.tex? – Daniel Aug 16 '12 at 20:25