From 8caa3ed737900c0fc004b24720f909244d17dd59 Mon Sep 17 00:00:00 2001 From: bringert Date: Fri, 10 Dec 2004 15:24:50 +0000 Subject: [PATCH] Added script for creating a clickable module dependency graph. --- bin/gfmap | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bin/gfmap diff --git a/bin/gfmap b/bin/gfmap new file mode 100644 index 000000000..e9f420830 --- /dev/null +++ b/bin/gfmap @@ -0,0 +1,31 @@ +#!/bin/sh + +GF="gf" +DOT="dot" + +BASE=$1 +shift + +if [ -z "$BASE" ]; then + echo "Usage: gfmap name module ..." 1>&2 + echo + echo "Creates a clickable module dependency graph" + exit 2 +fi + +DOT_FILE="$BASE.dot" +IMG_FILE="$BASE.gif" +MAP_FILE="$BASE.map" +HTML_FILE="$BASE.html" + +$GF -s -src "$@" <" > $HTML_FILE +cat $MAP_FILE >> $HTML_FILE + +echo "Created $HTML_FILE and $IMG_FILE" \ No newline at end of file