#!/bin/sh

# Script to generate ImageJ dependency graphs using maven-graph-plugin.
# Requires graphviz to be installed.

set -e

ROOT=`cd "$(dirname $0)/.." ; pwd`
COMPONENTS=(. core gui)

GRAPH_CMD="
  neato
  -Goverlap=scale
  -Gsplines=true
  -Gepsilon=0.0001
  -Tsvg
  -o dependency-graph.svg
  dependency-graph.dot
"

for c in ${COMPONENTS[*]}
do
  cd $ROOT/$c
  mvn graph:reactor
  cd target && $GRAPH_CMD
done

#!/bin/sh

# Script to generate ImageJ dependency graphs using maven-graph-plugin.
# Requires graphviz to be installed.

set -e

ROOT=`cd "$(dirname $0)/.." ; pwd`
COMPONENTS=(. core gui)

GRAPH_CMD="
  neato
  -Goverlap=scale
  -Gsplines=true
  -Gepsilon=0.0001
  -Tjpg
  -o dependency-graph.jpg
  dependency-graph.dot
"

for c in ${COMPONENTS[*]}
do
  cd $ROOT/$c
  mvn graph:reactor
  cd target && $GRAPH_CMD
done

Use JPEG instead of SVG for dependency graphs.
Use JPEG instead of SVG for dependency graphs.

This provides better control over the output, since all image software
renders JPEG the same, unlike SVG.


This used to be revision r2411.
