ソースを参照

Use current git export of cakephp.

Using an export of the current HEAD means we don't have to wait for
packagist to refresh. Also fix issues with the generated zipball, as it
included build/app directories which were wrong.
mark_story 11 年 前
コミット
f25db82d53
1 ファイル変更14 行追加4 行削除
  1. 14 4
      Makefile

+ 14 - 4
Makefile

@@ -81,9 +81,14 @@ clean:
 	rm -rf build
 	rm -rf dist
 
-build/app:
+build:
 	mkdir -p build
-	git clone git@github.com:$(OWNER)/app.git build/app
+
+build/app: build
+	git clone git@github.com:$(OWNER)/app.git build/app/
+
+build/cakephp: build
+	git checkout-index -a -f --prefix=build/cakephp/
 
 tag-app: guard-VERSION build/app
 	@echo "Tagging new version of application skeleton"
@@ -91,15 +96,20 @@ tag-app: guard-VERSION build/app
 	cd build/app && git push $(REMOTE)
 	cd build/app && git push $(REMOTE) --tags
 
-dist/cakephp-$(VERSION).zip: composer.phar
+dist/cakephp-$(VERSION).zip: build/app build/cakephp composer.phar
 	mkdir -p dist
 	@echo "Installing app dependencies with composer"
+	# Install deps with composer
 	cd build/app && php ../../composer.phar install
+	# Copy the current cakephp libs up so we don't have to wait
+	# for packagist to refresh.
+	rm -rf build/app/vendor/cakephp/cakephp
+	cp -r build/cakephp build/app/vendor/cakephp/cakephp
 	# Make a zipball of all the files that are not in .git dirs
 	# Including .git will make zip balls huge, and the zipball is
 	# intended for quick start non-git, non-cli users
 	@echo "Building zipball for $(VERSION)"
-	find build/app -not -path '*.git*' | zip dist/cakephp-$(VERSION).zip -@
+	cd build/app && find . -not -path '*.git*' | zip ../../dist/cakephp-$(VERSION).zip -@
 
 # Easier to type alias for zip balls
 package: tag-app dist/cakephp-$(VERSION).zip