]> git.saurik.com Git - apple/libpthread.git/blame - xcodescripts/install-lldbmacros.sh
libpthread-416.60.2.tar.gz
[apple/libpthread.git] / xcodescripts / install-lldbmacros.sh
CommitLineData
f1a1da6c
A
1#!/bin/bash -e
2# install the pthread lldbmacros into the module
3
4mkdir -p $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python || true
214d78a2
A
5rsync -aq $SRCROOT/lldbmacros/* $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python
6
7for variant in $BUILD_VARIANTS; do
8 case $variant in
9 normal)
10 SUFFIX=""
11 ;;
12 *)
13 SUFFIX="_$variant"
14 ;;
15 esac
16
17 ln -sf init.py $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python/$EXECUTABLE_NAME$SUFFIX.py
18done
c6e5f90c
A
19
20if test "$PLATFORM_NAME" != macosx; then
21 mkdir -p $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME || true
22 rsync -aq $SRCROOT/lldbmacros/* $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME
23 ln -sf init.py $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME/$EXECUTABLE_NAME.py
24fi