this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Automatically set up /etc/fonts and /usr/lib64 during installation

+18
+4
CMakeLists.txt
··· 80 80 81 81 install(DIRECTORY DESTINATION libexec/darling/etc/ld.so.conf.d) 82 82 install(CODE "execute_process(COMMAND bash ${DARLING_TOP_DIRECTORY}/src/setup-ld-so.sh WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/libexec/darling)") 83 + install(DIRECTORY DESTINATION libexec/darling/etc/fonts/conf.d) 84 + install(CODE "execute_process(COMMAND bash ${DARLING_TOP_DIRECTORY}/src/setup-fonts.sh WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/libexec/darling)") 85 + 83 86 InstallSymlink(/Volumes/SystemRoot/lib ${CMAKE_INSTALL_PREFIX}/libexec/darling/lib) 84 87 InstallSymlink(/Volumes/SystemRoot/lib64 ${CMAKE_INSTALL_PREFIX}/libexec/darling/lib64) 88 + InstallSymlink(/Volumes/SystemRoot/usr/lib64 ${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/lib64) 85 89 86 90 InstallSymlink(/Volumes/SystemRoot/usr/share/zoneinfo ${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/share/zoneinfo) 87 91
+14
src/setup-fonts.sh
··· 1 + #! /bin/bash 2 + 3 + # This runs as root, 4 + # with the current directory set to ${CMAKE_INSTALL_PREFIX}/libexec/darling 5 + 6 + root=/Volumes/SystemRoot 7 + 8 + for file in $(find /etc/fonts/ -type f); do 9 + sed "s|/usr/|$root/usr/|" $file > .$file 10 + done 11 + 12 + for link in $(find /etc/fonts/ -type l); do 13 + [ -L .$link ] || ln -s $root$(realpath $link) .$link 14 + done