Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 28 lines (27 sloc) 1.061 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/bin/bash -x
TARGET=SystemBootstrapper
if [ -n "${1}" ]; then
TARGET=$1
fi
REPO=$(dirname $(dirname $(readlink -f ${BASH_SOURCE})))
DEPFIND_HOME=/opt/DependencyFinder-1.2.1-beta4
export PATH=${DEPFIND_HOME}/bin:${PATH}
DEPS_DIR=$(mktemp -d /tmp/deps-XXXXXXXX)
DEPS=${DEPS_DIR}/dependencies.xml
DEPS_C2C=${DEPS_DIR}/dependencies-classes.xml
DEPS_CLOSURE=${DEPS_DIR}/dependencies-closure.xml
DEPS_CLOSURE_GRAPH=${DEPS_DIR}/dependencies-closure.graphml
touch ${DEPS} ${DEPS_C2C} ${DEPS_CLOSURE}
DependencyExtractor -xml -out ${DEPS} -time ${REPO}/clc/target/*.jar
c2c -xml -out ${DEPS_C2C} ${DEPS}
DependencyClosure -xml -verbose -maximum-outbound-depth 0 -start-includes /${TARGET}/ \
  -package-stop-includes com.google \
  -package-stop-includes java \
  -package-stop-includes javax \
  -package-stop-includes org \
  -package-stop-includes edu.emory \
  -package-stop-includes groovy \
  -out ${DEPS_CLOSURE} ${DEPS_C2C}
sed -i '/<outbound/d' ${DEPS_CLOSURE}
DependencyGraphToyEd -in ${DEPS_CLOSURE} -out ${DEPS_CLOSURE//xml/graphml}
echo See ${DEPS_DIR}
Something went wrong with that request. Please try again.