• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

モザイク表示でグロ画像の衝撃を和らげるBathyScaphe用プレビューアプラグイン。もしかするとThousandでも使えるかも?


Commit MetaInfo

Revisione778a3bc4d66c7cdd9543ad6bca38ff10262916a (tree)
Zeit2011-11-15 23:04:55
Autormasakih <masakih@user...>
Commitermasakih

Log Message

Append Makefile

Makefileを追加。

Ändern Zusammenfassung

Diff

--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
1+// encoding=utf-8
2+PRODUCT_NAME=GroEvaderForBSn1000
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=Info.plist
10+
11+VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>"
12+VERSION=$(shell $(VER_CMD))
13+
14+all:
15+ @echo do nothig.
16+ @echo use target tagging
17+
18+tagging:
19+ @echo "Tagging the $(VERSION) (x) release of GroEvader project."
20+ @echo ""
21+ echo svn copy $(HEAD) $(TAGS_DIR)/release-$(VERSION)
22+
23+Localizable:
24+ genstrings -o English.lproj $^
25+ (cd English.lproj; ${MAKE} $@;)
26+ genstrings -o Japanese.lproj $^
27+ (cd Japanese.lproj; ${MAKE} $@;)
28+
29+checkLocalizable:
30+ (cd English.lproj; ${MAKE} $@;)
31+ (cd Japanese.lproj; ${MAKE} $@;)
32+
33+release: updateRevision
34+ xcodebuild -configuration $(DEPLOYMENT)
35+ $(MAKE) restorInfoPlist
36+
37+package: release
38+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'`; \
39+ ditto -ck -rsrc --keepParent $(APP) $(APP_NAME)-$(VERSION)-$${REV}.zip
40+
41+updateRevision:
42+ if [ ! -f $(INFO_PLIST).bak ] ; then cp $(INFO_PLIST) $(INFO_PLIST).bak ; fi ; \
43+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'` ; \
44+ sed -e "s/%%%%REVISION%%%%/$${REV}/" $(INFO_PLIST) > $(INFO_PLIST).r ; \
45+ mv -f $(INFO_PLIST).r $(INFO_PLIST) ; \
46+
47+restorInfoPlist:
48+ if [ -f $(INFO_PLIST).bak ] ; then mv -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi
49+
50+