Skip to content

Commit 5bc1809

Browse files
committed
Add 'make dist-upload'
1 parent d214576 commit 5bc1809

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Makefile

+20-4
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ website_files = \
8989
out/doc/favicon.ico \
9090
out/doc/pipe.css
9191

92-
doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
92+
doc: doc
93+
94+
out/doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
95+
9396

9497
$(apidoc_dirs):
9598
mkdir -p $@
@@ -126,11 +129,19 @@ distclean: docclean
126129
check:
127130
@tools/waf-light check
128131

129-
VERSION=$(shell git describe)
132+
VERSION=v$(shell python tools/getnodeversion.py)
130133
TARNAME=node-$(VERSION)
134+
TARBALL=$(TARNAME).tar.gz
135+
PKG=dist-osx/$(TARNAME).pkg
131136

132137
#dist: doc/node.1 doc/api
133-
dist: doc
138+
dist: $(TARBALL) $(PKG)
139+
140+
$(PKG):
141+
-rm -rf dist-osx
142+
tools/osx-dist.sh
143+
144+
$(TARBALL): out/doc
134145
git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
135146
mkdir -p $(TARNAME)/doc
136147
cp doc/node.1 $(TARNAME)/doc/node.1
@@ -141,6 +152,11 @@ dist: doc
141152
rm -rf $(TARNAME)
142153
gzip -f -9 $(TARNAME).tar
143154

155+
dist-upload: $(TARBALL) $(PKG)
156+
ssh [email protected] mkdir -p web/nodejs.org/dist/$(VERSION)
157+
scp $(TARBALL) [email protected]:~/web/nodejs.org/dist/$(VERSION)/$(TARBALL)
158+
scp $(PKG) [email protected]:~/web/nodejs.org/dist/$(VERSION)/$(TARNAME).pkg
159+
144160
bench:
145161
benchmark/http_simple_bench.sh
146162

@@ -157,4 +173,4 @@ cpplint:
157173

158174
lint: jslint cpplint
159175

160-
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
176+
.PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean dist-upload check uninstall install all program staticlib dynamiclib test test-all website-upload

0 commit comments

Comments
 (0)