forked from tbarbe/Xcode-Git-User-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpasteMe_into_xcode_script_menu
More file actions
49 lines (35 loc) · 862 Bytes
/
pasteMe_into_xcode_script_menu
File metadata and controls
49 lines (35 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/bash
FILE=`%%%{PBXUtilityScriptsPath}%%%/AskUserForNewFileDialog "Save As" ".gitignore"`
echo "$FILE"
touch "$FILE"
FILEX=`%%%{PBXUtilityScriptsPath}%%%/AskUserForNewFileDialog "Save As" ".gitattributes"`
echo "$FILEX"
touch "$FILEX"
# This script creates the .gitignore and .gitattributes in the current folder.
echo "# Mac OS X Finder and whatnot
.DS_Store
# XCode (and ancestors) per-user config (very noisy, and not relevant)
*.mode1
*.mode1v3
*.mode2v3
*.perspective
*.perspectivev3
*.pbxuser
# Generated files
VersionX-revision.h
# build products
build/
*.[oa]
# Other source repository archive directories (protects when importing)
.hg
.svn
CVS
# automatic backup files
*~.nib
*.swp
*~
*(Autosaved).rtfd/
Backup[ ]of[ ]*.pages/
Backup[ ]of[ ]*.key/
Backup[ ]of[ ]*.numbers/" >> "$FILE"
echo "*.pbxproj -crlf -diff -merge" >> "$FILEX"