1. python_mirrors
  2. tracker/rietveld


Roger Tawa  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/

  • Participants
  • Parent commits 9ea01dc
  • Branches default

Comments (0)

Files changed (1)

File Makefile

View file
 # Makefile to simplify some common AppEngine actions.
 # Use 'make help' for a list of commands.
+APPID?= `cat app.yaml | sed -n 's/^application: *//p'`
 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