]> git.saurik.com Git - apple/libresolv.git/blob - xcodescripts/links.sh
libresolv-67.40.1.tar.gz
[apple/libresolv.git] / xcodescripts / links.sh
1 #!/bin/bash
2 set -e -x
3
4 if [ "$ACTION" = installhdrs ]; then exit 0; fi
5
6 LIBDIR="$DSTROOT"/usr/lib
7
8 # installapi runs the script *before* calling tapi... sigh...
9 mkdir -p "$LIBDIR"
10
11 ln -s libresolv.9.tbd "$LIBDIR"/libresolv.tbd
12 chown -h "$INSTALL_OWNER:$INSTALL_GROUP" "$LIBDIR"/libresolv.tbd
13
14 # don't install man pages for installhdrs, installapi, or iOS builds
15 if [ "$ACTION" = installapi ]; then exit 0; fi
16
17 ln -s libresolv.9.dylib "$LIBDIR"/libresolv.dylib
18 chown -h "$INSTALL_OWNER:$INSTALL_GROUP" "$LIBDIR"/libresolv.dylib
19 chmod -h 0755 "$LIBDIR"/libresolv.dylib