···11+#! /bin/bash
22+33+# This runs as root,
44+# with the current directory set to ${CMAKE_INSTALL_PREFIX}/libexec/darling
55+66+root=/Volumes/SystemRoot
77+88+for file in $(find /etc/fonts/ -type f); do
99+ sed "s|/usr/|$root/usr/|" $file > .$file
1010+done
1111+1212+for link in $(find /etc/fonts/ -type l); do
1313+ [ -L .$link ] || ln -s $root$(realpath $link) .$link
1414+done