#!/usr/bin/env bash if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] then cat <&1 >/dev/null if [ $? -ne 0 ] then echo "WARNING: runhaskell not found; you'll probably need to install Haskell" fi type dot 2>&1 >/dev/null if [ $? -ne 0 ] then echo "WARNING: dot not found; you'll probably need to install GraphViz" fi cat > "$OUTPUT_FILE" < \$@" \$(Q) \$(COQDEP) \$(COQLIBS) \$(VFILES) | sed s'#\\\\#/#g' > "\$@" %.dot: %.deps \$(VECHO) "DEPSTODOT \$< -o \$@" \$(Q) \$(HASKELL) "$DEPSTODOT" $@ -i "\$<" -o "\$@" %.svg: %.dot \$(VECHO) "DOT \$< -o \$@" \$(Q) \$(DOT) -Tsvg "\$<" -o "\$@" EOF