]> git.saurik.com Git - apple/system_cmds.git/blame_incremental - zic.tproj/install_zoneinfo.sh
system_cmds-735.20.1.tar.gz
[apple/system_cmds.git] / zic.tproj / install_zoneinfo.sh
... / ...
CommitLineData
1#!/bin/sh
2set -e
3set -x
4
5if [ -n "$RC_BRIDGE" ]; then
6 ACTUAL_PLATFORM_NAME="bridge${PLATFORM_NAME#watch}"
7else
8 ACTUAL_PLATFORM_NAME="${PLATFORM_NAME}"
9fi
10
11case "$ACTUAL_PLATFORM_NAME" in
12iphone*|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 ;;
16macosx|bridge*)
17 ditto "${BUILT_PRODUCTS_DIR}/zoneinfo" "${DSTROOT}/usr/share/zoneinfo"
18 ;;
19*)
20 echo "Unsupported platform: $ACTUAL_PLATFORM_NAME"
21 exit 1
22 ;;
23esac