2014-01-10 18:58:35 +00:00
|
|
|
#!/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
|
2015-03-29 03:29:52 +00:00
|
|
|
cat > "$DEST/lean.sh" <<EOF
|
|
|
|
if ! "$DEST/lean" \$* ; then echo "FAILED: \$*"; exit 1; fi
|
2014-01-10 18:58:35 +00:00
|
|
|
EOF
|
2015-03-29 03:29:52 +00:00
|
|
|
chmod +x "$DEST/lean.sh"
|
2014-01-10 18:58:35 +00:00
|
|
|
fi
|