Skip to content

Commit

Permalink
Fix xcode template installation script file copying (uber#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
edrew08 authored and artman committed Dec 4, 2017
1 parent 275d584 commit dba0ee7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/tooling/install-xcode-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Configuration
XCODE_TEMPLATE_DIR=$HOME'/Library/Developer/Xcode/Templates/File Templates/RIBs'
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Copy RIBs file templates into the local RIBs template directory
xcodeTemplate () {
Expand All @@ -11,9 +12,10 @@ xcodeTemplate () {
rm -R "$XCODE_TEMPLATE_DIR"
fi
mkdir -p "$XCODE_TEMPLATE_DIR"
cp -R *.xctemplate "$XCODE_TEMPLATE_DIR"

cp -R $SCRIPT_DIR/*.xctemplate "$XCODE_TEMPLATE_DIR"

cp -R RIB.xctemplate/ownsView/* "$XCODE_TEMPLATE_DIR/RIB.xctemplate/ownsViewwithXIB/"
cp -R $SCRIPT_DIR/RIB.xctemplate/ownsView/* "$XCODE_TEMPLATE_DIR/RIB.xctemplate/ownsViewwithXIB/"
}

xcodeTemplate
Expand Down

0 comments on commit dba0ee7

Please sign in to comment.