lean2/library/extract_deps
Leonardo de Moura 5a7e198583 feat(build): add Makefile for libraries
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-28 18:41:53 -07:00

10 lines
253 B
Bash
Executable file

#!/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