6 echo Usage
: args of faust2graphviewer should be a
\'.dsp
\' file, or a list of
\'.dsp
\' files.
10 # prepare how we are going to open .pdf files
11 if [[ $
(uname
) == Darwin
]]; then
19 # Main loop of this script :
20 for FILEPATH
in $@
; do
21 if [ -f $FILEPATH ] ; then
22 FILENAME
=`basename $FILEPATH` &&
25 faust
-o /dev
/null
-vec --task-graph $FILEPATH &&
26 dot
-Tpdf $FILEPATH.dot
-o ${FILEPATH%.dsp}-graph.pdf
&&
28 ${OPEN} ${FILEPATH%.dsp}-graph.pdf
31 echo error
: \'$FILEPATH\' does not have a
\'.dsp
\' extension.