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"