···277277 add_subdirectory(external/lzfse)
278278 add_subdirectory(clt)
279279 add_subdirectory(diskutil)
280280+ add_subdirectory(ditto)
280281281282 # these aren't used by anything we build (they're just included because they're also present in macOS)
282283 # 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.
···11+#!/usr/bin/env bash
22+33+#
44+# FIXME: implement an actual version of ditto
55+#
66+# This is just a stub that works well enough for xcodebuild.
77+#
88+99+if [ "$#" -lt 3 ]; then
1010+ >&2 cat <<- 'EOF'
1111+ ditto command stub
1212+1313+ Only supports "ditto -rsrc <source> <dest>"
1414+ EOF
1515+ exit 1
1616+fi
1717+1818+if [ "$1" != "--rsrc" ] && [ "$1" != "-rsrc" ]; then
1919+ >&2 echo "Bad argument #1; expected -rsrc or --rsrc"
2020+ exit 1
2121+fi
2222+2323+cp -a "$2" "$3"