title: Generate shell script call tree
body: <p>I've been handed a project that consists of several dozen (probably over 100, I haven't counted) bash scripts.  Most of the scripts make at least one call to another one of the scripts.  I'd like to get the equivalent of a call graph where the nodes are the scripts instead of functions.</p>
  
  <p>Is there any existing software to do this?</p>
  
  <p>If not, does anybody have clever ideas for how to do this?</p>
  
  <p>Best plan I could come up with was to enumerate the scripts and check to see if the basenames are unique (they span multiple directories).  If there are duplicate basenames, then cry, because the script paths are usually held in variable names so you may not be able to disambiguate.  If they are unique, then grep the names in the scripts and use those results to build up a graph.  Use some tool (suggestions?) to visualize the graph.</p>
  
  <p>Suggestions?</p>