Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make rules for release blog post and email message

  • Loading branch information...
commit 7abbda8ba2ecabd93b11388bc593ad94da2546bc 1 parent 6ebe9e0
@isaacs isaacs authored
Showing with 37 additions and 1 deletion.
  1. +9 −1 Makefile
  2. +15 −0 tools/changelog-head.sh
  3. +13 −0 tools/email-footer.md
View
10 Makefile
@@ -39,13 +39,14 @@ uninstall:
out/Release/node tools/installer.js uninstall
clean:
- -rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node
+ -rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md
-find out/ -name '*.o' -o -name '*.a' | xargs rm -rf
distclean:
-rm -rf out
-rm -f config.gypi
-rm -f config.mk
+ -rm -rf node node_g blog.html email.md
test: all
$(PYTHON) tools/test.py --mode=release simple message
@@ -136,6 +137,13 @@ out/doc/api/%.json: doc/api/%.markdown
out/doc/api/%.html: doc/api/%.markdown
out/Release/node tools/doc/generate.js --format=html --template=doc/template.html $< > $@
+email.md: ChangeLog tools/email-footer.md
+ bash tools/changelog-head.sh > $@
+ cat tools/email-footer.md | sed -e 's|__VERSION__|'$(VERSION)'|g' >> $@
+
+blog.html: email.md
+ cat $< | node tools/doc/node_modules/.bin/marked > $@
+
website-upload: doc
rsync -r out/doc/ node@nodejs.org:~/web/nodejs.org/
View
15 tools/changelog-head.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+cat ChangeLog | {
+ s=-1
+ while read line; do
+ if [ "${line:0:1}" == "2" ]; then
+ let "++s"
+ fi
+ if [ $s -eq 1 ]; then
+ exit
+ else
+ echo "$line"
+ fi
+ done
+}
+
View
13 tools/email-footer.md
@@ -0,0 +1,13 @@
+Source Code: http://nodejs.org/dist/__VERSION__/node-__VERSION__.tar.gz
+
+Windows Installer: http://nodejs.org/dist/__VERSION__/node-__VERSION__.msi
+
+Windows x64 Files: http://nodejs.org/dist/__VERSION__/x64/
+
+Macintosh Installer (Universal): http://nodejs.org/dist/__VERSION__/node-__VERSION__.pkg
+
+Other release files: http://nodejs.org/dist/__VERSION__/
+
+Website: http://nodejs.org/docs/__VERSION__/
+
+Documentation: http://nodejs.org/docs/__VERSION__/api/

3 comments on commit 7abbda8

@zzak

Documentation for v0.7.7 seems to be missing: here and here

@zzak

@isaacs this seems to work though, as does this

@isaacs
Owner

Thanks.

Please sign in to comment.
Something went wrong with that request. Please try again.