• 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のTitleRulerAppearanceを手軽に変更するツール


Commit MetaInfo

Revision6362fdddd9c95e2945bde74666362e69ff26156f (tree)
Zeit2011-02-22 01:11:55
Autormasakih <masakih@user...>
Commitermasakih

Log Message

[Mod] Makefileをgit用に変更

Ändern Zusammenfassung

Diff

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1-
1+// encoding=utf-8
22 PRODUCT_NAME=BSTREditor
33 PRODUCT_EXTENSION=app
44 BUILD_PATH=./build
@@ -8,10 +8,6 @@ APP=$(BUILD_PATH)/$(DEPLOYMENT)/$(APP_BUNDLE)
88 APP_NAME=$(BUILD_PATH)/$(DEPLOYMENT)/$(PRODUCT_NAME)
99 INFO_PLIST=Info.plist
1010
11-URL_BSTREditor = svn+ssh://macmini/usr/local/svnrepos/BSTREditor
12-HEAD = $(URL_BSTREditor)/BSTREditor
13-TAGS_DIR = $(URL_BSTREditor)/tags
14-
1511 VER_CMD=grep -A1 'CFBundleShortVersionString' $(INFO_PLIST) | tail -1 | tr -d "'\t</string>"
1612 VERSION=$(shell $(VER_CMD))
1713
@@ -21,8 +17,7 @@ all:
2117
2218 tagging:
2319 @echo "Tagging the $(VERSION) (x) release of BSTREditor project."
24- export LC_ALL=C; \
25- REV=`svn info | awk '/Last Changed Rev/ {print $$4}'` ; \
20+ @echo ""
2621 echo svn copy $(HEAD) $(TAGS_DIR)/release-$(VERSION).$${REV}
2722
2823 Localizable: BSTRADocument.m
@@ -40,20 +35,16 @@ release: updateRevision
4035 $(MAKE) restorInfoPlist
4136
4237 package: release
43- export LC_ALL=C; \
44- REV=`svn info | awk '/Last Changed Rev/ {print $$4}'`; \
38+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'`; \
4539 ditto -ck -rsrc --keepParent $(APP) $(APP_NAME)-$(VERSION)-$${REV}.zip
4640
47-updateRevision: update_svn
41+updateRevision:
4842 if [ ! -f $(INFO_PLIST).bak ] ; then cp $(INFO_PLIST) $(INFO_PLIST).bak ; fi ; \
49- export LC_ALL=C; \
50- REV=`svn info | awk '/Last Changed Rev/ {print $$4}'` ; \
43+ REV=`git show | head -1 | awk '{printf("%.7s\n", $$2)}'`; \
5144 sed -e "s/%%%%REVISION%%%%/$${REV}/" $(INFO_PLIST) > $(INFO_PLIST).r ; \
5245 mv -f $(INFO_PLIST).r $(INFO_PLIST) ; \
5346
5447 restorInfoPlist:
5548 if [ -f $(INFO_PLIST).bak ] ; then cp -f $(INFO_PLIST).bak $(INFO_PLIST) ; fi
5649
57-update_svn:
58- svn up
5950