Skip to content

Commit 9fe0bfd

Browse files
committed
cutarelease support (although not usable yet in -rc* versions)
1 parent 42488a7 commit 9fe0bfd

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ endif
2222
NPM := npm_config_tar=$(TAR) npm
2323

2424
LINT = ./node_modules/.javascriptlint/build/install/jsl --conf ./tools/jsl.conf
25-
25+
RELEASE = python ./node_modules/.cutarelease/cutarelease.py -f package.json
2626
RESTDOWN = ./node_modules/.restdown/bin/restdown \
2727
-m ${DOCPKGDIR} \
2828
-D mediaroot=media
@@ -51,6 +51,10 @@ node_modules/.npm.installed:
5151
(cd node_modules/.javascriptlint && git fetch origin); \
5252
fi
5353

54+
if [[ ! -d node_modules/.cutarelease ]]; then \
55+
git clone https://github.com/trentm/cutarelease node_modules/.cutarelease; \
56+
fi
57+
5458
@(cd ./node_modules/.restdown && git checkout $(RESTDOWN_VERSION))
5559
@(cd ./node_modules/.javascriptlint && $(MAKE) install)
5660
@touch ./node_modules/.npm.installed
@@ -82,3 +86,13 @@ clean:
8286

8387
distclean: clean
8488
@rm -fr node_modules
89+
90+
release: lint test doc
91+
$(RELEASE)
92+
git checkout gh-pages
93+
git pull --rebase
94+
cp -r docs/pkg/* v1.0
95+
git add v1.0
96+
git commit -m 'release docs'
97+
git push origin gh-pages
98+
git checkout master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"name": "restify",
1313
"homepage": "http://mcavage.github.com/node-restify",
1414
"description": "REST framework",
15-
"version": "1.0.0-1-rc",
15+
"version": "1.0.0-1-rc2",
1616
"publishConfig": { "tag": "beta" },
1717
"repository": {
1818
"type": "git",

0 commit comments

Comments
 (0)