3 ## This is to be used once jenkins has finished building the release
7 stability="$(python tools/getstability.py)"
8 NODE_STABC="$(tr '[:lower:]' '[:upper:]' <<< ${stability:0:1})${stability:1}"
9 NODE_STABL="$stability"
11 echo "Building for $stability"
13 scp tj@nodejs.org:archive/node/tmp/v$(python tools/getnodeversion.py)/SHASUM* .
14 FILES="SHASUMS SHASUMS256"
15 for i in $FILES ; do gpg -s $i.txt; gpg --clearsign $i.txt; done
16 scp SHASUM* tj@nodejs.org:archive/node/tmp/v$(python tools/getnodeversion.py)/
18 ssh nodejs.org mkdir -p "dist/v$(python tools/getnodeversion.py)/{x64,docs}"
19 ssh nodejs.org ln -s ../dist/v$(python tools/getnodeversion.py)/docs docs/v$(python tools/getnodeversion.py)
21 ssh root@nodejs.org mv /home/tj/archive/node/tmp/v$(python tools/getnodeversion.py)/* /home/node/dist/v$(python tools/getnodeversion.py)/
22 ssh root@nodejs.org chown -R node:other /home/node/dist/v$(python tools/getnodeversion.py)
25 # should be the same key used to sign the shasums
26 git tag -sm "$(bash tools/changelog-head.sh)" v$(python tools/getnodeversion.py)
29 git push git@github.com:joyent/node v$(python tools/getnodeversion.py)-release --tags
37 echo '```' ) >> email.md
41 python tools/getnodeversion.py
42 echo "category: release"
43 echo "title: Node v"$(python tools/getnodeversion.py)" ($NODE_STABC)"
44 echo "slug: node-v"$(python tools/getnodeversion.py | sed 's|\.|-|g')"-$NODE_STABL"
46 cat email.md ) > doc/blog/release/v$(python tools/getnodeversion.py).md
48 if [ "$stability" = "stable" ];
50 ## this needs to happen here because the website depends on the current node
54 BRANCH="v$(python tools/getnodeversion.py | sed -E 's#\.[0-9]+$##')"
59 echo "Merging back into $BRANCH"
61 # merge back into mainline stable branch
63 git merge --no-ff v$(python tools/getnodeversion.py)-release
65 # change the version number, set isrelease = 0
67 vim src/node_version.h
68 git commit -am "Now working on "$(python tools/getnodeversion.py)
70 if [ "$stability" = "stable" ];
74 git commit -m "blog: Post for v$(python tools/getprevnodeversion.py)"
76 echo "copy blog to stable branch"
79 git push git@github.com:joyent/node $BRANCH