this repo has no description
1
fork

Configure Feed

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

Add `ditto` command stub

+32
+1
src/CMakeLists.txt
··· 277 277 add_subdirectory(external/lzfse) 278 278 add_subdirectory(clt) 279 279 add_subdirectory(diskutil) 280 + add_subdirectory(ditto) 280 281 281 282 # these aren't used by anything we build (they're just included because they're also present in macOS) 282 283 # TODO: maybe we should introduce another component (e.g. `lib_stock`) for libraries we don't need but are expected in a stock macOS installation.
+8
src/ditto/CMakeLists.txt
··· 1 + project(ditto) 2 + 3 + install(FILES ditto DESTINATION libexec/darling/usr/bin 4 + PERMISSIONS 5 + OWNER_READ OWNER_WRITE OWNER_EXECUTE 6 + GROUP_READ GROUP_EXECUTE 7 + WORLD_READ WORLD_EXECUTE 8 + )
+23
src/ditto/ditto
··· 1 + #!/usr/bin/env bash 2 + 3 + # 4 + # FIXME: implement an actual version of ditto 5 + # 6 + # This is just a stub that works well enough for xcodebuild. 7 + # 8 + 9 + if [ "$#" -lt 3 ]; then 10 + >&2 cat <<- 'EOF' 11 + ditto command stub 12 + 13 + Only supports "ditto -rsrc <source> <dest>" 14 + EOF 15 + exit 1 16 + fi 17 + 18 + if [ "$1" != "--rsrc" ] && [ "$1" != "-rsrc" ]; then 19 + >&2 echo "Bad argument #1; expected -rsrc or --rsrc" 20 + exit 1 21 + fi 22 + 23 + cp -a "$2" "$3"