1

I have a large C codebase for which I had to generate Call graphs. I was kind of successful using Doxygen, but the problem now is, Doxygen generates a different DOT file for every function etc,..

I found another tool within GraphViz called gvpack which merges many Dot files into one, but how to make this call dynamically?? I mean the names of those dot files are random, so when I use

gvpack -o output.DOT *.dot

it says cannot open *.dot, but

gvpack -o output.DOT file1.dot file2.dot file3.dot 

works fine, so my question is: is there any way to input all files (DOT) to gvpack by using wildcards??

Alex Stragies
  • 552
  • 6
  • 12
Hari Krishna
  • 551
  • 6
  • 21

1 Answers1

4

Use the dos type command to combine the files using a wildcard, then pipe it to gvpack:

type *.dot | gvpack -o output.dot

From the gvpack manual:

SYNOPSIS

gvpack [ -nguv? ] [ -mmargin ] [ -array[_flags][n] ] [ -ooutfile ] [ -Gname=value ] [ files ]

OPERANDS

files Names of files containing 1 or more graphs in dot format. If no files operand is specified, the standard input will be used.

Vik David
  • 3,640
  • 4
  • 21
  • 29