Permalink
Browse files

Added Xcode 4 template for Kiwi spec

Spec file template and script, that installs template to
~/Library/Developer/Xcode/Templates
  • Loading branch information...
1 parent cd20c49 commit a9930cdaf9b95af3657231c50887dd3cfe035154 @SevInf SevInf committed Feb 21, 2012
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>AllowedTypes</key>
+ <array>
+ <string>public.objective-c-source</string>
+ </array>
+ <key>Platforms</key>
+ <array>
+ <string>com.apple.platform.iphoneos</string>
+ </array>
+ <key>DefaultCompletionName</key>
+ <string>NewKiwiSpec</string>
+ <key>Description</key>
+ <string>Kiwi spec file</string>
+ <key>Kind</key>
+ <string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
+ <key>MainTemplateFile</key>
+ <string>___FILEBASENAME___.m</string>
+ <key>SortOrder</key>
+ <integer>1</integer>
+ <key>Summary</key>
+ <string>Spec class of Kiwi BDD framework</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+#import <Kiwi/Kiwi.h>
+
+
+SPEC_BEGIN(___FILEBASENAMEASIDENTIFIER___)
+
+SPEC_END
+
+
View
@@ -0,0 +1,12 @@
+#!/usr/bin/env sh
+
+SOURCE_DIR=$(dirname $0)
+TEMPLATES_DIR="$HOME/Library/Developer/Xcode/Templates"
+FILE_TEMPLATES_DIR="$TEMPLATES_DIR/File Templates"
+KIWI_TEMPLATES_DIR="$FILE_TEMPLATES_DIR/Kiwi"
+
+
+echo "Installing templates to $KIWI_TEMPLATES_DIR"
+mkdir -p "$KIWI_TEMPLATES_DIR"
+cp -R "$SOURCE_DIR/Templates/" "$KIWI_TEMPLATES_DIR"
+echo "Finished"

0 comments on commit a9930cd

Please sign in to comment.