diff options
author | isaacs <i@izs.me> | 2012-01-05 04:57:34 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-01-05 04:57:34 +0400 |
commit | ccf2f4e8efe3ca96007818bc30ae4d48be278cf8 (patch) | |
tree | 911a64705d9bc5612504f18921a4593d80c2d81e /Makefile | |
parent | fc432c6b46024aff19f805e2a5d3ea8881680df3 (diff) |
A script for building a release
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -108,18 +108,26 @@ version: link git add package.json &&\ git ci -m v$(shell npm -v) -publish: link +publish: link doc git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\ git push origin --tags &&\ npm publish &&\ - make doc-publish + npm tag npm@$(shell npm -v) $(shell npm -v | awk -F. '{print $1 "." $2}') &&\ + make doc-publish &&\ + make zip-publish docpublish: doc-publish doc-publish: doc rsync -vazu --stats --no-implied-dirs --delete html/doc/ npmjs.org:/var/www/npmjs.org/public/doc rsync -vazu --stats --no-implied-dirs --delete html/api/ npmjs.org:/var/www/npmjs.org/public/api +zip-publish: release + scp release/*.zip npmjs.org:/var/www/npmjs.org/public/dist/ + +release: + @bash scripts/release.sh + sandwich: @[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || echo "make it yourself" -.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish +.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish release zip-publish |