# HG changeset patch # User Chris Cannam # Date 1352132380 0 # Node ID 3549525ba22a4c697e865881d0b64bb68baf81f7 # Parent 7c94a1b38c2fb9b9c859823a05c18e58456121cf Fix failure to extract whole project docs for certain Java projects diff -r 7c94a1b38c2f -r 3549525ba22a extra/soundsoftware/extract-javadoc.sh --- a/extra/soundsoftware/extract-javadoc.sh Fri Oct 26 17:19:30 2012 +0100 +++ b/extra/soundsoftware/extract-javadoc.sh Mon Nov 05 16:19:40 2012 +0000 @@ -35,8 +35,8 @@ # package declarations find "$projectdir" -type f -name \*.java \ - -exec grep '^ *package [a-zA-Z][a-zA-Z0-9\._-]*; *$' \{\} /dev/null \; | - sed -e 's/\/[^\/]*: *package */:/' -e 's/; *$//' | + -exec egrep '^ *package +[a-zA-Z][a-zA-Z0-9\._-]*;.*$' \{\} /dev/null \; | + sed -e 's/\/[^\/]*: *package */:/' -e 's/;.*$//' | sort | uniq | ( current_prefix= current_packages=