Commits

Anonymous committed f4174e6 Draft

When using the 'make update' command, allow the application to be optionally specified on the command line. For example:

make update APPID=chromiumcodereviews-hr VERSION=r123-4567890abc

If APPID is specified, then the application from the app.yaml file is used.

Review: http://codereview.appspot.com/6138054/

Comments (0)

Files changed (1)

 # Makefile to simplify some common AppEngine actions.
 # Use 'make help' for a list of commands.
 
+APPID?= `cat app.yaml | sed -n 's/^application: *//p'`
+
 SDK_PATH ?=
 
 DEV_APPSERVER?= $(if $(SDK_PATH), $(SDK_PATH)/,)dev_appserver.py
 	@echo "`hg id -n`:`hg id -i`" >REVISION
 
 update: update_revision
-	@echo "---[Updating `cat app.yaml | sed -n 's/^application: *//p'`]---"
-	$(APPCFG) $(APPCFG_FLAGS) update . --version $(VERSION)
+	@echo "---[Updating $(APPID)]---"
+	$(APPCFG) $(APPCFG_FLAGS) update . --application $(APPID) --version $(VERSION)
 
 upload: update