]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | set -x | |
4 | ||
5 | if [ -n "$RC_BRIDGE" ]; then | |
6 | ACTUAL_PLATFORM_NAME="bridge${PLATFORM_NAME#watch}" | |
7 | else | |
8 | ACTUAL_PLATFORM_NAME="${PLATFORM_NAME}" | |
9 | fi | |
10 | ||
11 | case "$ACTUAL_PLATFORM_NAME" in | |
12 | iphone*|appletv*|watch*) | |
13 | ditto "${BUILT_PRODUCTS_DIR}/zoneinfo" "${DSTROOT}/usr/share/zoneinfo.default" | |
14 | ln -hfs "/var/db/timezone/zoneinfo" "${DSTROOT}/usr/share/zoneinfo" | |
15 | ;; | |
16 | macosx|bridge*) | |
17 | ditto "${BUILT_PRODUCTS_DIR}/zoneinfo" "${DSTROOT}/usr/share/zoneinfo" | |
18 | ;; | |
19 | *) | |
20 | echo "Unsupported platform: $ACTUAL_PLATFORM_NAME" | |
21 | exit 1 | |
22 | ;; | |
23 | esac |