build(userspace/coreutils): generate symlink "[" on install

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-03-16 00:25:04 +00:00
parent 6e077acc66
commit 65f9a805e2
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -49,3 +49,11 @@ foreach(name IN LISTS GROUP_MAP_)
) )
install(TARGETS ${name} DESTINATION bin) install(TARGETS ${name} DESTINATION bin)
endforeach() endforeach()
if(UNIX AND TARGET test)
install(CODE "execute_process(
COMMAND ${CMAKE_COMMAND} -E create_symlink
test
\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/[\"
)")
endif()