Last active
April 15, 2019 14:09
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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