Skip to content

Commit

Permalink
issue #195 - Fix Xcode template install script and add uninstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
allending committed Jan 17, 2013
1 parent e0c0aa8 commit a7c4b10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Xcode Templates/install-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ KIWI_TEMPLATES_DIR="$FILE_TEMPLATES_DIR/Kiwi"

echo "Installing templates to $KIWI_TEMPLATES_DIR"
mkdir -p "$KIWI_TEMPLATES_DIR"
cp "$SOURCE_DIR/Kiwi Spec.xctemplate" "$KIWI_TEMPLATES_DIR"
cp -R "$SOURCE_DIR/Kiwi Spec.xctemplate" "$KIWI_TEMPLATES_DIR"
echo "Finished"
9 changes: 9 additions & 0 deletions Xcode Templates/uninstall-templates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

TEMPLATES_DIR="$HOME/Library/Developer/Xcode/Templates"
FILE_TEMPLATES_DIR="$TEMPLATES_DIR/File Templates"
KIWI_TEMPLATES_DIR="$FILE_TEMPLATES_DIR/Kiwi"
KIWI_SPEC_TEMPLATE="$KIWI_TEMPLATES_DIR/Kiwi Spec.xctemplate"
echo "Removing $KIWI_SPEC_TEMPLATE"
rm -rf "$KIWI_TEMPLATES_DIR/Kiwi Spec.xctemplate"
echo "Finished"

0 comments on commit a7c4b10

Please sign in to comment.