Add make dist-upload
authorRyan Dahl <ry@tinyclouds.org>
Tue, 17 Jan 2012 02:52:36 +0000 (18:52 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 17 Jan 2012 02:52:36 +0000 (18:52 -0800)
Makefile

index 3652db3..3b152d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -171,6 +171,11 @@ $(TARBALL): node out/doc
        rm -rf $(TARNAME)
        gzip -f -9 $(TARNAME).tar
 
+dist-upload: $(TARBALL) $(PKG)
+       ssh node@nodejs.org mkdir -p web/nodejs.org/dist/$(VERSION)
+       scp $(TARBALL) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
+       scp $(PKG) node@nodejs.org:~/web/nodejs.org/dist/$(VERSION)/$(TARNAME).pkg
+
 bench:
         benchmark/http_simple_bench.sh