Patch jerboa-qt compile imports during vendoring

ober

cf4ec18038ce69662099457f99458c1189cd8906

diff --git a/scripts/patch-jerboa-qt-compat.sh b/scripts/patch-jerboa-qt-compat.sh
index b53d509..de19c6b 100755
--- a/scripts/patch-jerboa-qt-compat.sh
+++ b/scripts/patch-jerboa-qt-compat.sh
@@ -19,8 +19,17 @@
 set -eu
 
 repo="${1:-.}"
+compile="$repo/vendor/jerboa-qt/compile-libs.ss"
 qtsls="$repo/vendor/jerboa-qt/lib/jerboa-qt/qt.sls"
 
+if [ -f "$compile" ] && grep -q '(import (chez-qt ffi) (chez-qt qt))' "$compile"; then
+  sed -i \
+    -e 's/Compile chez-qt libraries/Compile jerboa-qt libraries/' \
+    -e 's/(import (chez-qt ffi) (chez-qt qt))/(import (jerboa-qt ffi) (jerboa-qt qt))/' \
+    "$compile"
+  echo "patch-jerboa-qt-compat: compile-libs.ss imports jerboa-qt"
+fi
+
 [ -f "$qtsls" ] || exit 0
 # Already patched?
 if grep -q '(except (jerboa prelude) string-split string-join make-time)' "$qtsls"; then