hop
Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key.
Brought by drakestapleton
hop / tools / check-parking-lot.sh
| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | cd "$(dirname "$0")/.." |
| 4 | work=$(mktemp -d "${TMPDIR:-/tmp}/hop-parking-check.XXXXXXXX") |
| 5 | trap 'rm -rf "$work"' EXIT HUP INT TERM |
| 6 | sed "s#HOP_DIR#$PWD#" toolchain/overlay.yaml > "$work/overlay.yaml" |
| 7 | swiftc -swift-version 5 -vfsoverlay "$work/overlay.yaml" -Xcc -ivfsoverlay -Xcc "$work/overlay.yaml" Sources/ParkingLot.swift tests/ParkingLotChecks.swift -o "$work/check" |
| 8 | "$work/check" |
| 9 | if [ "$#" -gt 0 ]; then |
| 10 | mkdir "$work/profile" |
| 11 | HOP_CONFIG_DIR="$work/profile" /usr/bin/perl -e 'alarm 60; exec @ARGV or die $!' "$1/Contents/MacOS/Hop" --selftest-flow |
| 12 | fi |