lean2/src/shell/mk_lean_sh.sh
Leonardo de Moura 5fb718c03a fix(build): broken dependencies between lean executable and .olean, *_decls.cpp and *_decls.h files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-10 10:58:35 -08:00

13 lines
311 B
Bash
Executable file

#!/bin/sh
# Auxiliary script that creates the file `lean.sh` if it doesn't
# exist yet
DEST=$1
if [ -x "$DEST/lean.sh" ]; then
# Nothing to be done, file already exists
exit 0
else
cat > $DEST/lean.sh <<EOF
if ! $DEST/lean \$* ; then echo "FAILED: \$*"; exit 1; fi
EOF
chmod +x $DEST/lean.sh
fi