]> git.saurik.com Git - apple/libpthread.git/blame_incremental - xcodescripts/install-lldbmacros.sh
libpthread-454.100.8.tar.gz
[apple/libpthread.git] / xcodescripts / install-lldbmacros.sh
... / ...
CommitLineData
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
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
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