1#!/bin/sh
2
3set -ex
4
5# check if we're building for the simulator
6if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ] ; then
7	[ -z "${DSTROOT}" ] && exit 1
8	[ -d "${DSTROOT}/usr" ] && rm -rf "${DSTROOT}/usr"
9	exit 0
10fi
11
12# This script phase is run here, so that the hardlinks are created *after* stripping.
13# Doing it in the bzip2 target itself produces verification failures.
14ln ${DSTROOT}/usr/bin/bzip2 ${DSTROOT}/usr/bin/bunzip2
15ln ${DSTROOT}/usr/bin/bzip2 ${DSTROOT}/usr/bin/bzcat
16
17