소스 검색

Initial Commit

coldiary 6 년 전
커밋
0bec5c0104

+ 234
- 0
Life.xcodeproj/project.pbxproj 파일 보기

@@ -0,0 +1,234 @@
1
+// !$*UTF8*$!
2
+{
3
+	archiveVersion = 1;
4
+	classes = {
5
+	};
6
+	objectVersion = 46;
7
+	objects = {
8
+
9
+/* Begin PBXBuildFile section */
10
+		6AED72A7194AB16C00C47B6F /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AED72A6194AB16C00C47B6F /* main.c */; };
11
+		6AED72A9194AB16C00C47B6F /* Life.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6AED72A8194AB16C00C47B6F /* Life.1 */; };
12
+/* End PBXBuildFile section */
13
+
14
+/* Begin PBXCopyFilesBuildPhase section */
15
+		6AED72A1194AB16C00C47B6F /* CopyFiles */ = {
16
+			isa = PBXCopyFilesBuildPhase;
17
+			buildActionMask = 2147483647;
18
+			dstPath = /usr/share/man/man1/;
19
+			dstSubfolderSpec = 0;
20
+			files = (
21
+				6AED72A9194AB16C00C47B6F /* Life.1 in CopyFiles */,
22
+			);
23
+			runOnlyForDeploymentPostprocessing = 1;
24
+		};
25
+/* End PBXCopyFilesBuildPhase section */
26
+
27
+/* Begin PBXFileReference section */
28
+		6AED72A3194AB16C00C47B6F /* Life */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Life; sourceTree = BUILT_PRODUCTS_DIR; };
29
+		6AED72A6194AB16C00C47B6F /* main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
30
+		6AED72A8194AB16C00C47B6F /* Life.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = Life.1; sourceTree = "<group>"; };
31
+/* End PBXFileReference section */
32
+
33
+/* Begin PBXFrameworksBuildPhase section */
34
+		6AED72A0194AB16C00C47B6F /* Frameworks */ = {
35
+			isa = PBXFrameworksBuildPhase;
36
+			buildActionMask = 2147483647;
37
+			files = (
38
+			);
39
+			runOnlyForDeploymentPostprocessing = 0;
40
+		};
41
+/* End PBXFrameworksBuildPhase section */
42
+
43
+/* Begin PBXGroup section */
44
+		6AED729A194AB16B00C47B6F = {
45
+			isa = PBXGroup;
46
+			children = (
47
+				6AED72A5194AB16C00C47B6F /* Life */,
48
+				6AED72A4194AB16C00C47B6F /* Products */,
49
+			);
50
+			sourceTree = "<group>";
51
+		};
52
+		6AED72A4194AB16C00C47B6F /* Products */ = {
53
+			isa = PBXGroup;
54
+			children = (
55
+				6AED72A3194AB16C00C47B6F /* Life */,
56
+			);
57
+			name = Products;
58
+			sourceTree = "<group>";
59
+		};
60
+		6AED72A5194AB16C00C47B6F /* Life */ = {
61
+			isa = PBXGroup;
62
+			children = (
63
+				6AED72A6194AB16C00C47B6F /* main.c */,
64
+				6AED72A8194AB16C00C47B6F /* Life.1 */,
65
+			);
66
+			path = Life;
67
+			sourceTree = "<group>";
68
+		};
69
+/* End PBXGroup section */
70
+
71
+/* Begin PBXNativeTarget section */
72
+		6AED72A2194AB16C00C47B6F /* Life */ = {
73
+			isa = PBXNativeTarget;
74
+			buildConfigurationList = 6AED72AC194AB16C00C47B6F /* Build configuration list for PBXNativeTarget "Life" */;
75
+			buildPhases = (
76
+				6AED729F194AB16C00C47B6F /* Sources */,
77
+				6AED72A0194AB16C00C47B6F /* Frameworks */,
78
+				6AED72A1194AB16C00C47B6F /* CopyFiles */,
79
+			);
80
+			buildRules = (
81
+			);
82
+			dependencies = (
83
+			);
84
+			name = Life;
85
+			productName = Life;
86
+			productReference = 6AED72A3194AB16C00C47B6F /* Life */;
87
+			productType = "com.apple.product-type.tool";
88
+		};
89
+/* End PBXNativeTarget section */
90
+
91
+/* Begin PBXProject section */
92
+		6AED729B194AB16B00C47B6F /* Project object */ = {
93
+			isa = PBXProject;
94
+			attributes = {
95
+				LastUpgradeCheck = 0510;
96
+				ORGANIZATIONNAME = "Benoit Sida";
97
+			};
98
+			buildConfigurationList = 6AED729E194AB16B00C47B6F /* Build configuration list for PBXProject "Life" */;
99
+			compatibilityVersion = "Xcode 3.2";
100
+			developmentRegion = English;
101
+			hasScannedForEncodings = 0;
102
+			knownRegions = (
103
+				en,
104
+			);
105
+			mainGroup = 6AED729A194AB16B00C47B6F;
106
+			productRefGroup = 6AED72A4194AB16C00C47B6F /* Products */;
107
+			projectDirPath = "";
108
+			projectRoot = "";
109
+			targets = (
110
+				6AED72A2194AB16C00C47B6F /* Life */,
111
+			);
112
+		};
113
+/* End PBXProject section */
114
+
115
+/* Begin PBXSourcesBuildPhase section */
116
+		6AED729F194AB16C00C47B6F /* Sources */ = {
117
+			isa = PBXSourcesBuildPhase;
118
+			buildActionMask = 2147483647;
119
+			files = (
120
+				6AED72A7194AB16C00C47B6F /* main.c in Sources */,
121
+			);
122
+			runOnlyForDeploymentPostprocessing = 0;
123
+		};
124
+/* End PBXSourcesBuildPhase section */
125
+
126
+/* Begin XCBuildConfiguration section */
127
+		6AED72AA194AB16C00C47B6F /* Debug */ = {
128
+			isa = XCBuildConfiguration;
129
+			buildSettings = {
130
+				ALWAYS_SEARCH_USER_PATHS = NO;
131
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
132
+				CLANG_CXX_LIBRARY = "libc++";
133
+				CLANG_ENABLE_MODULES = YES;
134
+				CLANG_ENABLE_OBJC_ARC = YES;
135
+				CLANG_WARN_BOOL_CONVERSION = YES;
136
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
137
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
138
+				CLANG_WARN_EMPTY_BODY = YES;
139
+				CLANG_WARN_ENUM_CONVERSION = YES;
140
+				CLANG_WARN_INT_CONVERSION = YES;
141
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
142
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
143
+				COPY_PHASE_STRIP = NO;
144
+				GCC_C_LANGUAGE_STANDARD = gnu99;
145
+				GCC_DYNAMIC_NO_PIC = NO;
146
+				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
147
+				GCC_OPTIMIZATION_LEVEL = 0;
148
+				GCC_PREPROCESSOR_DEFINITIONS = (
149
+					"DEBUG=1",
150
+					"$(inherited)",
151
+				);
152
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
153
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
154
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
155
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
156
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
157
+				GCC_WARN_UNUSED_FUNCTION = YES;
158
+				GCC_WARN_UNUSED_VARIABLE = YES;
159
+				MACOSX_DEPLOYMENT_TARGET = 10.9;
160
+				ONLY_ACTIVE_ARCH = YES;
161
+				SDKROOT = macosx;
162
+			};
163
+			name = Debug;
164
+		};
165
+		6AED72AB194AB16C00C47B6F /* Release */ = {
166
+			isa = XCBuildConfiguration;
167
+			buildSettings = {
168
+				ALWAYS_SEARCH_USER_PATHS = NO;
169
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
170
+				CLANG_CXX_LIBRARY = "libc++";
171
+				CLANG_ENABLE_MODULES = YES;
172
+				CLANG_ENABLE_OBJC_ARC = YES;
173
+				CLANG_WARN_BOOL_CONVERSION = YES;
174
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
175
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
176
+				CLANG_WARN_EMPTY_BODY = YES;
177
+				CLANG_WARN_ENUM_CONVERSION = YES;
178
+				CLANG_WARN_INT_CONVERSION = YES;
179
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
180
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
181
+				COPY_PHASE_STRIP = YES;
182
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
183
+				ENABLE_NS_ASSERTIONS = NO;
184
+				GCC_C_LANGUAGE_STANDARD = gnu99;
185
+				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
186
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
187
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
188
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
189
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
190
+				GCC_WARN_UNUSED_FUNCTION = YES;
191
+				GCC_WARN_UNUSED_VARIABLE = YES;
192
+				MACOSX_DEPLOYMENT_TARGET = 10.9;
193
+				SDKROOT = macosx;
194
+			};
195
+			name = Release;
196
+		};
197
+		6AED72AD194AB16C00C47B6F /* Debug */ = {
198
+			isa = XCBuildConfiguration;
199
+			buildSettings = {
200
+				PRODUCT_NAME = "$(TARGET_NAME)";
201
+			};
202
+			name = Debug;
203
+		};
204
+		6AED72AE194AB16C00C47B6F /* Release */ = {
205
+			isa = XCBuildConfiguration;
206
+			buildSettings = {
207
+				PRODUCT_NAME = "$(TARGET_NAME)";
208
+			};
209
+			name = Release;
210
+		};
211
+/* End XCBuildConfiguration section */
212
+
213
+/* Begin XCConfigurationList section */
214
+		6AED729E194AB16B00C47B6F /* Build configuration list for PBXProject "Life" */ = {
215
+			isa = XCConfigurationList;
216
+			buildConfigurations = (
217
+				6AED72AA194AB16C00C47B6F /* Debug */,
218
+				6AED72AB194AB16C00C47B6F /* Release */,
219
+			);
220
+			defaultConfigurationIsVisible = 0;
221
+			defaultConfigurationName = Release;
222
+		};
223
+		6AED72AC194AB16C00C47B6F /* Build configuration list for PBXNativeTarget "Life" */ = {
224
+			isa = XCConfigurationList;
225
+			buildConfigurations = (
226
+				6AED72AD194AB16C00C47B6F /* Debug */,
227
+				6AED72AE194AB16C00C47B6F /* Release */,
228
+			);
229
+			defaultConfigurationIsVisible = 0;
230
+		};
231
+/* End XCConfigurationList section */
232
+	};
233
+	rootObject = 6AED729B194AB16B00C47B6F /* Project object */;
234
+}

+ 7
- 0
Life.xcodeproj/project.xcworkspace/contents.xcworkspacedata 파일 보기

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Workspace
3
+   version = "1.0">
4
+   <FileRef
5
+      location = "self:Life.xcodeproj">
6
+   </FileRef>
7
+</Workspace>

+ 86
- 0
Life.xcodeproj/xcuserdata/Coldiary.xcuserdatad/xcschemes/Life.xcscheme 파일 보기

@@ -0,0 +1,86 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "0510"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
8
+      <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "6AED72A2194AB16C00C47B6F"
18
+               BuildableName = "Life"
19
+               BlueprintName = "Life"
20
+               ReferencedContainer = "container:Life.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+      </BuildActionEntries>
24
+   </BuildAction>
25
+   <TestAction
26
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28
+      shouldUseLaunchSchemeArgsEnv = "YES"
29
+      buildConfiguration = "Debug">
30
+      <Testables>
31
+      </Testables>
32
+      <MacroExpansion>
33
+         <BuildableReference
34
+            BuildableIdentifier = "primary"
35
+            BlueprintIdentifier = "6AED72A2194AB16C00C47B6F"
36
+            BuildableName = "Life"
37
+            BlueprintName = "Life"
38
+            ReferencedContainer = "container:Life.xcodeproj">
39
+         </BuildableReference>
40
+      </MacroExpansion>
41
+   </TestAction>
42
+   <LaunchAction
43
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
44
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
45
+      launchStyle = "0"
46
+      useCustomWorkingDirectory = "NO"
47
+      buildConfiguration = "Debug"
48
+      ignoresPersistentStateOnLaunch = "NO"
49
+      debugDocumentVersioning = "YES"
50
+      allowLocationSimulation = "YES">
51
+      <BuildableProductRunnable>
52
+         <BuildableReference
53
+            BuildableIdentifier = "primary"
54
+            BlueprintIdentifier = "6AED72A2194AB16C00C47B6F"
55
+            BuildableName = "Life"
56
+            BlueprintName = "Life"
57
+            ReferencedContainer = "container:Life.xcodeproj">
58
+         </BuildableReference>
59
+      </BuildableProductRunnable>
60
+      <AdditionalOptions>
61
+      </AdditionalOptions>
62
+   </LaunchAction>
63
+   <ProfileAction
64
+      shouldUseLaunchSchemeArgsEnv = "YES"
65
+      savedToolIdentifier = ""
66
+      useCustomWorkingDirectory = "NO"
67
+      buildConfiguration = "Release"
68
+      debugDocumentVersioning = "YES">
69
+      <BuildableProductRunnable>
70
+         <BuildableReference
71
+            BuildableIdentifier = "primary"
72
+            BlueprintIdentifier = "6AED72A2194AB16C00C47B6F"
73
+            BuildableName = "Life"
74
+            BlueprintName = "Life"
75
+            ReferencedContainer = "container:Life.xcodeproj">
76
+         </BuildableReference>
77
+      </BuildableProductRunnable>
78
+   </ProfileAction>
79
+   <AnalyzeAction
80
+      buildConfiguration = "Debug">
81
+   </AnalyzeAction>
82
+   <ArchiveAction
83
+      buildConfiguration = "Release"
84
+      revealArchiveInOrganizer = "YES">
85
+   </ArchiveAction>
86
+</Scheme>

+ 22
- 0
Life.xcodeproj/xcuserdata/Coldiary.xcuserdatad/xcschemes/xcschememanagement.plist 파일 보기

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>SchemeUserState</key>
6
+	<dict>
7
+		<key>Life.xcscheme</key>
8
+		<dict>
9
+			<key>orderHint</key>
10
+			<integer>0</integer>
11
+		</dict>
12
+	</dict>
13
+	<key>SuppressBuildableAutocreation</key>
14
+	<dict>
15
+		<key>6AED72A2194AB16C00C47B6F</key>
16
+		<dict>
17
+			<key>primary</key>
18
+			<true/>
19
+		</dict>
20
+	</dict>
21
+</dict>
22
+</plist>

+ 79
- 0
Life/Life.1 파일 보기

@@ -0,0 +1,79 @@
1
+.\"Modified from man(1) of FreeBSD, the NetBSD mdoc.template, and mdoc.samples.
2
+.\"See Also:
3
+.\"man mdoc.samples for a complete listing of options
4
+.\"man mdoc for the short list of editing options
5
+.\"/usr/share/misc/mdoc.template
6
+.Dd 2014-06-13               \" DATE 
7
+.Dt Life 1      \" Program name and manual section number 
8
+.Os Darwin
9
+.Sh NAME                 \" Section Header - required - don't modify 
10
+.Nm Life,
11
+.\" The following lines are read in generating the apropos(man -k) database. Use only key
12
+.\" words here as the database is built based on the words here and in the .ND line. 
13
+.Nm Other_name_for_same_program(),
14
+.Nm Yet another name for the same program.
15
+.\" Use .Nm macro to designate other names for the documented program.
16
+.Nd This line parsed for whatis database.
17
+.Sh SYNOPSIS             \" Section Header - required - don't modify
18
+.Nm
19
+.Op Fl abcd              \" [-abcd]
20
+.Op Fl a Ar path         \" [-a path] 
21
+.Op Ar file              \" [file]
22
+.Op Ar                   \" [file ...]
23
+.Ar arg0                 \" Underlined argument - use .Ar anywhere to underline
24
+arg2 ...                 \" Arguments
25
+.Sh DESCRIPTION          \" Section Header - required - don't modify
26
+Use the .Nm macro to refer to your program throughout the man page like such:
27
+.Nm
28
+Underlining is accomplished with the .Ar macro like this:
29
+.Ar underlined text .
30
+.Pp                      \" Inserts a space
31
+A list of items with descriptions:
32
+.Bl -tag -width -indent  \" Begins a tagged list 
33
+.It item a               \" Each item preceded by .It macro
34
+Description of item a
35
+.It item b
36
+Description of item b
37
+.El                      \" Ends the list
38
+.Pp
39
+A list of flags and their descriptions:
40
+.Bl -tag -width -indent  \" Differs from above in tag removed 
41
+.It Fl a                 \"-a flag as a list item
42
+Description of -a flag
43
+.It Fl b
44
+Description of -b flag
45
+.El                      \" Ends the list
46
+.Pp
47
+.\" .Sh ENVIRONMENT      \" May not be needed
48
+.\" .Bl -tag -width "ENV_VAR_1" -indent \" ENV_VAR_1 is width of the string ENV_VAR_1
49
+.\" .It Ev ENV_VAR_1
50
+.\" Description of ENV_VAR_1
51
+.\" .It Ev ENV_VAR_2
52
+.\" Description of ENV_VAR_2
53
+.\" .El                      
54
+.Sh FILES                \" File used or created by the topic of the man page
55
+.Bl -tag -width "/Users/joeuser/Library/really_long_file_name" -compact
56
+.It Pa /usr/share/file_name
57
+FILE_1 description
58
+.It Pa /Users/joeuser/Library/really_long_file_name
59
+FILE_2 description
60
+.El                      \" Ends the list
61
+.\" .Sh DIAGNOSTICS       \" May not be needed
62
+.\" .Bl -diag
63
+.\" .It Diagnostic Tag
64
+.\" Diagnostic informtion here.
65
+.\" .It Diagnostic Tag
66
+.\" Diagnostic informtion here.
67
+.\" .El
68
+.Sh SEE ALSO 
69
+.\" List links in ascending order by section, alphabetically within a section.
70
+.\" Please do not reference files that do not exist without filing a bug report
71
+.Xr a 1 , 
72
+.Xr b 1 ,
73
+.Xr c 1 ,
74
+.Xr a 2 ,
75
+.Xr b 2 ,
76
+.Xr a 3 ,
77
+.Xr b 3 
78
+.\" .Sh BUGS              \" Document known, unremedied bugs 
79
+.\" .Sh HISTORY           \" Document history if command behaves in a unique manner

+ 18
- 0
Life/main.c 파일 보기

@@ -0,0 +1,18 @@
1
+//
2
+//  main.c
3
+//  Life
4
+//
5
+//  Created by Benoit Sida on 2014-06-13.
6
+//  Copyright (c) 2014 Benoit Sida. All rights reserved.
7
+//
8
+
9
+#include <stdio.h>
10
+
11
+int main(int argc, const char * argv[])
12
+{
13
+
14
+    // insert code here...
15
+    printf("Hello, World!\n");
16
+    return 0;
17
+}
18
+