]> git.saurik.com Git - apple/libresolv.git/blob - xcodescripts/headers.sh
1f35dbcdbae9cce89e0157b6216d95013a8b83bf
[apple/libresolv.git] / xcodescripts / headers.sh
1 #!/bin/bash
2 set -e -x
3
4 # check if we're building for the simulator
5 if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ] ; then
6 DSTROOT="${DSTROOT}${SDKROOT}"
7 fi
8
9 DIR="$DSTROOT"/usr/include/arpa
10 install -d -m 0755 -o "$INSTALL_OWNER" -g "$INSTALL_GROUP" \
11 "$DIR"
12 ln -s ../nameser.h "$DIR"
13 chmod -h 0644 "$DIR"/nameser.h
14 chown -h "$INSTALL_OWNER:$INSTALL_GROUP" "$DIR"/nameser.h