From 31df6cc7471de91afb2c09accd57aa856edaf49a Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 30 Oct 2009 20:48:45 -0400 Subject: [PATCH] Add Google Code upload target to common Makefile. --- common/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/Makefile b/common/Makefile index e3d9e534..19c27d84 100644 --- a/common/Makefile +++ b/common/Makefile @@ -4,6 +4,7 @@ TOP = $(shell pwd) OS = $(shell uname -s) BUILD_DATE = $(shell date "+%Y/%m/%d %H:%M:%S") BASE = $(TOP)/../common +GOOGLE_PROJ = vimperator-labs LOCALEDIR = locale DOC_FILES = $(wildcard $(LOCALEDIR)/*/*.xml) @@ -56,6 +57,7 @@ help: @echo " make jar - build a JAR ($(JAR))" @echo " make xpi - build an XPI ($(XPI_NAME))" @echo " make release - updates update.rdf (this is not for you)" + @echo " make release - uploads to Google Code (this is not for you)" @echo " make clean - clean up" @echo " make distclean - clean up more" @echo @@ -72,6 +74,19 @@ jar: $(JAR) release: $(XPI) $(RDF) +# This is not for you! +dist: $(XPI) + [ -n "$(featured)" ] && labels="$$labels,Featured"; \ + proj=$$(echo -n $(NAME) | sed 's/\(.\).*/\1/' | tr a-z A-Z); \ + proj="$$proj$$(echo $(NAME) | sed 's/.//')"; \ + [ -z "$$description" ] && description="$$proj $(VERSION) Release"; \ + \ + labels=$$(echo -n "$$labels,Project-$$proj" | sed 's/^,*//g'); \ + \ + googlecode_upload -s "$$description" -l "$$labels" \ + -p "$(GOOGLE_PROJ)" -u "$(GOOGLE_USER)" -w "$(GOOGLE_PASS)" \ + -- "$(XPI)" + $(RDF): $(RDF_IN) Makefile @echo "Preparing release..." $(SED) -e "s,###VERSION###,$(VERSION),g" \