Revision 450:73401a15037b extra/soundsoftware

View differences:

extra/soundsoftware/extract-javadoc.sh
50 50
		continue
51 51
	    fi
52 52
	    if [ "$prefix" != "$current_prefix" ]; then
53
		echo "Package $package matches file path and has new prefix $prefix"
53 54
		if [ -n "$current_packages" ]; then
54 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 57
		    javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages
56 58
		fi
57 59
		current_prefix="$prefix"
58
		current_packages=
60
		current_packages="$package"
59 61
	    else
62
		echo "Package $package matches file path with same prefix as previous file"
60 63
		current_packages="$current_packages $package"
61 64
	    fi
62 65
	done
63 66
	prefix=${prefix:=$projectdir}
64 67
	if [ -n "$current_packages" ]; then
65 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 70
	    javadoc -sourcepath "$current_prefix" -d "$targetdir" -subpackages $current_packages
67 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 78
# for exit code:
71 79
[ -f "$targetdir/index.html" ]
72 80

  

Also available in: Unified diff