bin: add install-to-exe.sh for remote testing

Philip Zeyliger and Claude created

Prompt: Add to bin/ a bin/install-to-exe.sh script that takes a hostname, appends exe.xyz to it if it's "short", builds a shelley binary for linux x86, scp'ies it to /usr/local/bin on the host, and runs systemctl restart -u shelley.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Change summary

bin/install-to-exe.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)

Detailed changes

bin/install-to-exe.sh 🔗

@@ -0,0 +1,12 @@
+#!/bin/bash
+set -e
+
+host="$1"
+[[ -z "$host" ]] && {
+    echo "usage: $0 <hostname>"
+    exit 1
+}
+[[ "$host" != *.* ]] && host="$host.exe.xyz"
+
+make build-linux-x86
+cat bin/shelley-linux-x86 | ssh "$host" "sudo mv /usr/local/bin/shelley /usr/local/bin/shelley.old; sudo tee /usr/local/bin/shelley > /dev/null && sudo chmod +x /usr/local/bin/shelley && sudo systemctl restart shelley"