[Pkg-javascript-commits] [sockjs-client] 178/434: Supply js named like `maj.min`.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit ef639c52d6fcd9025685f5ddf97ce8fa182348c3
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Mon Oct 24 15:03:58 2011 +0100

    Supply js named like `maj.min`.
---
 Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 49c5a5b..d3d424a 100644
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,8 @@ clean:
 
 RVER:=$(shell cat version)
 VER:=$(shell ./VERSION-GEN)
+# The first two dots: 1.2.3 -> 1.2
+MAJVER:=$(shell echo $(VER)|sed 's|^\([^.]\+\)[.]\([^.]\+\)[.]\([^.]\+\)[.].*$$|\1.\2|' )
 
 .PHONY: tag upload
 tag:
@@ -75,8 +77,12 @@ upload: build
 		cp $$f ../sockjs-client-gh-pages/`echo $$f|sed 's|\(sockjs\)\(.*[.]js\)|\1-$(VER)\2|g'`; \
 	done
 	for f in sock*js; do						\
+		cp $$f ../sockjs-client-gh-pages/`echo $$f|sed 's|\(sockjs\)\(.*[.]js\)|\1-$(MAJVER)\2|g'`; \
+	done
+	for f in sock*js; do						\
 		cp $$f ../sockjs-client-gh-pages/`echo $$f|sed 's|\(sockjs\)\(.*[.]js\)|\1-latest\2|g'`; \
 	done
-	(cd ../sockjs-client-gh-pages; node generate_index.js > index.html;)
-	@echo ' [*] Now run:'
-	@echo '(cd ../sockjs-client-gh-pages; git add sock*js; git commit -m sock*js index.html -m "Release $(VER)"; git push;)'
+	(cd ../sockjs-client-gh-pages; git add sock*js; git commit sock*js -m "Release $(VER)";)'
+	(cd ../sockjs-client-gh-pages; node generate_index.js > index.html; git add index.html; git commit index.html --amend -m "Release $(VER)";)'
+	@echo ' [*] Now run: '
+	@echo '(cd ../sockjs-client-gh-pages; git push;)'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list