@@ -134,16 +134,16 @@ test-npm: $(NODE_EXE)
134134 rm -rf npm-cache npm-tmp npm-prefix
135135 mkdir npm-cache npm-tmp npm-prefix
136136 cd deps/npm ; npm_config_cache=" $( shell pwd) /npm-cache" \
137- npm_config_prefix=" $( shell pwd) /npm-prefix" \
138- npm_config_tmp=" $( shell pwd) /npm-tmp" \
139- ../../$(NODE_EXE ) cli.js install --ignore-scripts
137+ npm_config_prefix=" $( shell pwd) /npm-prefix" \
138+ npm_config_tmp=" $( shell pwd) /npm-tmp" \
139+ ../../$(NODE_EXE ) cli.js install --ignore-scripts
140140 cd deps/npm ; npm_config_cache=" $( shell pwd) /npm-cache" \
141- npm_config_prefix=" $( shell pwd) /npm-prefix" \
142- npm_config_tmp=" $( shell pwd) /npm-tmp" \
143- ../../$(NODE_EXE ) cli.js run-script test-all && \
144- ../../$(NODE_EXE ) cli.js prune --prod && \
145- cd ../.. && \
146- rm -rf npm-cache npm-tmp npm-prefix
141+ npm_config_prefix=" $( shell pwd) /npm-prefix" \
142+ npm_config_tmp=" $( shell pwd) /npm-tmp" \
143+ ../../$(NODE_EXE ) cli.js run-script test-all && \
144+ ../../$(NODE_EXE ) cli.js prune --prod && \
145+ cd ../.. && \
146+ rm -rf npm-cache npm-tmp npm-prefix
147147
148148test-npm-publish : $(NODE_EXE )
149149 npm_package_config_publishtest=true ./$(NODE_EXE ) deps/npm/test/run.js
@@ -160,7 +160,7 @@ test-timers-clean:
160160
161161apidoc_sources = $(wildcard doc/api/* .markdown)
162162apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html ) ) \
163- $(addprefix out/,$(apidoc_sources:.markdown=.json ) )
163+ $(addprefix out/,$(apidoc_sources:.markdown=.json ) )
164164
165165apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
166166
@@ -244,7 +244,7 @@ release-only:
244244 @if [ " $( shell git status --porcelain | egrep -v ' ^\?\? ' ) " = " " ]; then \
245245 exit 0 ; \
246246 else \
247- echo " " >&2 ; \
247+ echo " " >&2 ; \
248248 echo " The git repository is not clean." >&2 ; \
249249 echo " Please commit changes before building release tarball." >&2 ; \
250250 echo " " >&2 ; \
@@ -255,10 +255,26 @@ release-only:
255255 @if [ " $( NIGHTLY) " != " " -o " $( RELEASE) " = " 1" ]; then \
256256 exit 0; \
257257 else \
258- echo " " >&2 ; \
258+ echo " " >&2 ; \
259259 echo " #NODE_VERSION_IS_RELEASE is set to $( RELEASE) ." >&2 ; \
260- echo " Did you remember to update src/node_version.cc?" >&2 ; \
261- echo " " >&2 ; \
260+ echo " Did you remember to update src/node_version.h?" >&2 ; \
261+ echo " " >&2 ; \
262+ exit 1 ; \
263+ fi
264+ @if [ " $( RELEASE_SOURCE_URL) " != " " ]; then \
265+ exit 0; \
266+ else \
267+ echo " " >&2 ; \
268+ echo " #RELEASE_SOURCE_URL is not set." >&2 ; \
269+ echo " " >&2 ; \
270+ exit 1 ; \
271+ fi
272+ @if [ " $( RELEASE_HEADERS_URL) " != " " ]; then \
273+ exit 0; \
274+ else \
275+ echo " " >&2 ; \
276+ echo " #RELEASE_HEADERS_URL is not set." >&2 ; \
277+ echo " " >&2 ; \
262278 exit 1 ; \
263279 fi
264280
@@ -267,10 +283,14 @@ pkg: $(PKG)
267283$(PKG ) : release-only
268284 rm -rf $(PKGDIR )
269285 rm -rf out/deps out/Release
270- $(PYTHON ) ./configure --dest-cpu=ia32 --tag=$(TAG )
286+ $(PYTHON ) ./configure --dest-cpu=ia32 --tag=$(TAG ) \
287+ --release-source-url=$(RELEASE_SOURCE_URL ) \
288+ --release-headers-url=$(RELEASE_HEADERS_URL )
271289 $(MAKE ) install V=$(V ) DESTDIR=$(PKGDIR ) /32
272290 rm -rf out/deps out/Release
273- $(PYTHON ) ./configure --dest-cpu=x64 --tag=$(TAG )
291+ $(PYTHON ) ./configure --dest-cpu=x64 --tag=$(TAG ) \
292+ --release-source-url=$(RELEASE_SOURCE_URL ) \
293+ --release-headers-url=$(RELEASE_HEADERS_URL )
274294 $(MAKE ) install V=$(V ) DESTDIR=$(PKGDIR )
275295 SIGN=" $( APP_SIGN) " PKGDIR=" $( PKGDIR) " bash tools/osx-codesign.sh
276296 lipo $(PKGDIR ) /32/usr/local/bin/iojs \
@@ -308,7 +328,10 @@ tar: $(TARBALL)
308328$(BINARYTAR ) : release-only
309329 rm -rf $(BINARYNAME )
310330 rm -rf out/deps out/Release
311- $(PYTHON ) ./configure --prefix=/ --dest-cpu=$(DESTCPU ) --tag=$(TAG ) $(CONFIG_FLAGS )
331+ $(PYTHON ) ./configure --prefix=/ --dest-cpu=$(DESTCPU ) \
332+ --tag=$(TAG ) \
333+ --release-source-url=$(RELEASE_SOURCE_URL ) \
334+ --release-headers-url=$(RELEASE_HEADERS_URL ) $(CONFIG_FLAGS )
312335 $(MAKE ) install DESTDIR=$(BINARYNAME ) V=$(V ) PORTABLE=1
313336 cp README.md $(BINARYNAME )
314337 cp LICENSE $(BINARYNAME )
@@ -326,7 +349,9 @@ binary: $(BINARYTAR)
326349$(PKGSRC ) : release-only
327350 rm -rf dist out
328351 $(PYTHON ) configure --prefix=/ \
329- --dest-cpu=$(DESTCPU ) --tag=$(TAG ) $(CONFIG_FLAGS )
352+ --dest-cpu=$(DESTCPU ) --tag=$(TAG ) \
353+ --release-source-url=$(RELEASE_SOURCE_URL ) \
354+ --release-headers-url=$(RELEASE_HEADERS_URL ) $(CONFIG_FLAGS )
330355 $(MAKE ) install DESTDIR=dist
331356 (cd dist; find * -type f | sort) > packlist
332357 pkg_info -X pkg_install | \
@@ -380,7 +405,7 @@ bench-all: bench bench-misc bench-array bench-buffer bench-url bench-events
380405bench : bench-net bench-http bench-fs bench-tls
381406
382407bench-http-simple :
383- benchmark/http_simple_bench.sh
408+ benchmark/http_simple_bench.sh
384409
385410bench-idle :
386411 ./$(NODE_EXE ) benchmark/idle_server.js &
0 commit comments