########################################################################
# #
# This software is part of the ast package #
# Copyright (c) 1989-2011 AT&T Intellectual Property #
# and is licensed under the #
# Eclipse Public License, Version 1.0 #
# by AT&T Intellectual Property #
# #
# A copy of the License is available at #
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
# #
# Information and Software Systems Research #
# AT&T Research #
# Florham Park NJ #
# #
# Glenn Fowler <gsf@research.att.com> #
# #
########################################################################
USAGE=$'
[-?
@(#)$Id: mamdot (AT&T Labs Research) 1997-02-16 $
]
[+NAME?mamdot - make abstract machine to dot dependency graph conversion filter]
[+DESCRIPTION?\bmamdot\b reads MAM (Make Abstract Machine) target and
prerequisite file descriptions from the standard input and writes a
\bdot\b(1) description of the dependency graph on the standard output.
Mamfiles are generated by the \b--mam\b option of \bnmake\b(1) and
\bgmake\b(1).]
[i:ignore?Dependency names matching the shell \apattern\a are
ignored.]:[pattern]
[+SEE ALSO?\bdot\b(1), \bgmake\b(1), \bnmake\b(1)]
'
;;
*) ARGV0=""
USAGE="i:[pattern]"
;;
esac
{
OPTIND=0
exit 2
}
integer level=0
typeset -A pwd top
;;
*) usage
;;
esac
done
print "digraph mam {"
print "rankdir = LR"
print "node [ shape = box ]"
label=0
}
}
;;
;;
print "\"$arg\" -> {${list[level]} }"
;;
esac
;;
esac
done
print "}"