]> git.saurik.com Git - apple/system_cmds.git/blame - zic.tproj/install_zoneinfo.sh
system_cmds-735.20.1.tar.gz
[apple/system_cmds.git] / zic.tproj / install_zoneinfo.sh
CommitLineData
fc6d9e4b 1#!/bin/sh
9726c137
A
2set -e
3set -x
fc6d9e4b 4
cf37c299
A
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
9726c137
A
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 ;;
cf37c299 16macosx|bridge*)
9726c137
A
17 ditto "${BUILT_PRODUCTS_DIR}/zoneinfo" "${DSTROOT}/usr/share/zoneinfo"
18 ;;
19*)
cf37c299 20 echo "Unsupported platform: $ACTUAL_PLATFORM_NAME"
9726c137
A
21 exit 1
22 ;;
23esac