lean2/library/extract_deps

11 lines
253 B
Text
Raw Normal View History

#!/usr/bin/env bash
for LEANFILE in $@; do
OLEANFILE=${LEANFILE//.lean/.olean}
DEPS=`$LEAN --deps $LEANFILE | cut -d ' ' -f 2- | tr "\n" " "`
echo -n "$OLEANFILE:"
for DEP in $DEPS; do
echo -n " ${DEP}"
done
echo ""
done