Mercurial > hg > soundsoftware-site
comparison extra/soundsoftware/extract-javadoc.sh @ 524:1248a47e81b3 feature_36
Merge from branch "luisf"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 14:39:38 +0100 |
parents | 73401a15037b |
children | 3549525ba22a |
comparison
equal
deleted
inserted
replaced
519:3be6bc3c2a17 | 524:1248a47e81b3 |
---|---|
48 if [ "$prefix" = "$filepath" ]; then | 48 if [ "$prefix" = "$filepath" ]; then |
49 echo "Package $package does not match suffix of path $filepath, skipping" | 49 echo "Package $package does not match suffix of path $filepath, skipping" |
50 continue | 50 continue |
51 fi | 51 fi |
52 if [ "$prefix" != "$current_prefix" ]; then | 52 if [ "$prefix" != "$current_prefix" ]; then |
53 echo "Package $package matches file path and has new prefix $prefix" | |
53 if [ -n "$current_packages" ]; then | 54 if [ -n "$current_packages" ]; then |
54 echo "Running Javadoc for packages $current_packages from prefix $current_prefix" | 55 echo "Running Javadoc for packages $current_packages from prefix $current_prefix" |
56 echo "Command is: javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages" | |
55 javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages | 57 javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages |
56 fi | 58 fi |
57 current_prefix="$prefix" | 59 current_prefix="$prefix" |
58 current_packages= | 60 current_packages="$package" |
59 else | 61 else |
62 echo "Package $package matches file path with same prefix as previous file" | |
60 current_packages="$current_packages $package" | 63 current_packages="$current_packages $package" |
61 fi | 64 fi |
62 done | 65 done |
63 prefix=${prefix:=$projectdir} | 66 prefix=${prefix:=$projectdir} |
64 if [ -n "$current_packages" ]; then | 67 if [ -n "$current_packages" ]; then |
65 echo "Running Javadoc for packages $current_packages in prefix $current_prefix" | 68 echo "Running Javadoc for packages $current_packages in prefix $current_prefix" |
69 echo "Command is: javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages" | |
66 javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages | 70 javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages |
67 fi | 71 fi |
68 ) | 72 ) |
69 | 73 |
74 if [ -f "$targetdir"/overview-tree.html ]; then | |
75 cp "$targetdir"/overview-tree.html "$targetdir"/index.html | |
76 fi | |
77 | |
70 # for exit code: | 78 # for exit code: |
71 [ -f "$targetdir/index.html" ] | 79 [ -f "$targetdir/index.html" ] |
72 | 80 |