interplane.Get Omega
Read in your language

hop

Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key.

Brought by drakestapleton

branch main Branches Tags History

hop / tools / check-parking-lot.sh

12 lines · 573 bytes Raw Blame History
1#!/bin/sh
2set -eu
3cd "$(dirname "$0")/.."
4work=$(mktemp -d "${TMPDIR:-/tmp}/hop-parking-check.XXXXXXXX")
5trap 'rm -rf "$work"' EXIT HUP INT TERM
6sed "s#HOP_DIR#$PWD#" toolchain/overlay.yaml > "$work/overlay.yaml"
7swiftc -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"
9if [ "$#" -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
12fi