Skip to content

Instantly share code, notes, and snippets.

@dgreen
Last active April 15, 2019 14:09
Show Gist options
  • Save dgreen/b2b55a81529a418a2d79b50807db2d7c to your computer and use it in GitHub Desktop.
Save dgreen/b2b55a81529a418a2d79b50807db2d7c to your computer and use it in GitHub Desktop.
Create a pdf listing for all source files in NetBeans Java Project (ant-based) - shell script portion of automator script
ENSCRIPT=/usr/local/bin/enscript
PS2PDF=/usr/local/bin/ps2pdf
PACKAGE="*/"
# PACKAGE=
# TBD: deal with spaces in paths
for f in "$@"
do
# echo "$f"
f1=${f##*/}
# -2 -r removed
cd "$f"
$ENSCRIPT -o - src/*.java src/$PACKAGE*.java test/*.java test/$PACKAGE*.java | $PS2PDF - srcListings.pdf
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment