masakih

うぇぶブラウザ変更くん For ばちすか〜ふ(プロジェクト終了)

  • R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BathyScapheのデフォルトWebブラウザを変更するプラグイン


Commit MetaInfo

Revisione3ae65444f4015e73ecb669cc7922ad9737240d2 (tree)
Zeit2013-01-17 22:06:52
Autormasakih <masakih@user...>
Commitermasakih

Log Message

Makefileを追加

Ändern Zusammenfassung

Diff

--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
11 /HMWebBrowserChanger.xcodeproj/project.xcworkspace/
2-/HMWebBrowserChanger.xcodeproj/xcuserdata/
\ No newline at end of file
2+/HMWebBrowserChanger.xcodeproj/xcuserdata/
3+/build/
\ No newline at end of file
--- a/HMWebBrowserChanger.xcodeproj/project.pbxproj
+++ b/HMWebBrowserChanger.xcodeproj/project.pbxproj
@@ -15,6 +15,7 @@
1515 /* End PBXBuildFile section */
1616
1717 /* Begin PBXFileReference section */
18+ F417502516A82A84001239BC /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
1819 F41801EC169EF1C3004C7E62 /* HMWebBrowserChanger.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HMWebBrowserChanger.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
1920 F41801EF169EF1C3004C7E62 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
2021 F41801F2169EF1C3004C7E62 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
@@ -48,6 +49,7 @@
4849 F41801E1169EF1C3004C7E62 = {
4950 isa = PBXGroup;
5051 children = (
52+ F417502516A82A84001239BC /* Makefile */,
5153 F4180202169EF234004C7E62 /* BSPreviewPluginInterface.h */,
5254 F4180201169EF20F004C7E62 /* PSPreviewerInterface.h */,
5355 F41801F5169EF1C3004C7E62 /* HMWebBrowserChanger */,
@@ -214,9 +216,9 @@
214216 GCC_WARN_ABOUT_RETURN_TYPE = YES;
215217 GCC_WARN_UNINITIALIZED_AUTOS = YES;
216218 GCC_WARN_UNUSED_VARIABLE = YES;
217- MACOSX_DEPLOYMENT_TARGET = 10.8;
219+ MACOSX_DEPLOYMENT_TARGET = 10.7;
218220 ONLY_ACTIVE_ARCH = YES;
219- SDKROOT = macosx;
221+ SDKROOT = macosx10.7;
220222 };
221223 name = Debug;
222224 };
@@ -237,8 +239,8 @@
237239 GCC_WARN_ABOUT_RETURN_TYPE = YES;
238240 GCC_WARN_UNINITIALIZED_AUTOS = YES;
239241 GCC_WARN_UNUSED_VARIABLE = YES;
240- MACOSX_DEPLOYMENT_TARGET = 10.8;
241- SDKROOT = macosx;
242+ MACOSX_DEPLOYMENT_TARGET = 10.7;
243+ SDKROOT = macosx10.7;
242244 };
243245 name = Release;
244246 };
@@ -287,6 +289,7 @@
287289 F4180200169EF1C3004C7E62 /* Release */,
288290 );
289291 defaultConfigurationIsVisible = 0;
292+ defaultConfigurationName = Release;
290293 };
291294 /* End XCConfigurationList section */
292295 };
--- a/HMWebBrowserChanger/HMWebBrowserChanger-Info.plist
+++ b/HMWebBrowserChanger/HMWebBrowserChanger-Info.plist
@@ -21,7 +21,7 @@
2121 <key>CFBundleSignature</key>
2222 <string>????</string>
2323 <key>CFBundleVersion</key>
24- <string>1</string>
24+ <string>%%%%REVISION%%%%</string>
2525 <key>NSPrincipalClass</key>
2626 <string>HMWebBrowserChanger</string>
2727 </dict>
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
1+// encoding=utf-8
2+PRODUCT_NAME=HMWebBrowserChanger
3+PRODUCT_EXTENSION=bundle
4+BUILD_PATH=./build
5+DEPLOYMENT=Release
6+APP_BUNDLE=$(PRODUCT_NAME).$(PRODUCT_EXTENSION)
7+APP=$(BUILD_PATH)/$(DEPLOYMENT)/$(APP_BUNDLE)
8+APP_NAME=$(BUILD_PATH)/$(DEPLOYMENT)/$(PRODUCT_NAME)
9+INFO_PLIST=HMWebBrowserChanger/HMWebBrowserChanger-Info.plist
10+
11+VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>"
12+VERSION=$(shell $(VER_CMD))
13+
14+LocalizeFiles=
15+
16+all:
17+ @echo do nothig.
18+
19+Localizable: ${LocalizeFiles}
20+ genstrings -o English.lproj $^
21+ (cd English.lproj; ${MAKE} $@;)
22+ genstrings -o Japanese.lproj $^
23+ (cd Japanese.lproj; ${MAKE} $@;)
24+
25+checkLocalizable:
26+ (cd English.lproj; ${MAKE} $@;)
27+ (cd Japanese.lproj; ${MAKE} $@;)
28+
29+release: updateRevision
30+ xcodebuild -configuration $(DEPLOYMENT)
31+ $(MAKE) restorInfoPlist
32+
33+package: release
34+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'`; \
35+ ditto -ck -rsrc --keepParent $(APP) $(APP_NAME)-$(VERSION)-$${REV}.zip
36+
37+updateRevision:
38+ if [ ! -f $(INFO_PLIST).bak ] ; then cp $(INFO_PLIST) $(INFO_PLIST).bak ; fi ; \
39+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'` ; \
40+ sed -e "s/%%%%REVISION%%%%/$${REV}/" $(INFO_PLIST) > $(INFO_PLIST).r ; \
41+ mv -f $(INFO_PLIST).r $(INFO_PLIST) ; \
42+
43+restorInfoPlist:
44+ if [ -f $(INFO_PLIST).bak ] ; then mv -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi
45+
46+