From 4bdb63bf1d1afe23700e60ef7c75192f32ced994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Mon, 13 Apr 2015 18:03:50 +1000 Subject: [PATCH] tools: Remove unused files Stray files used in the previous release process --- tools/getnextnodeversion.py | 16 ------- tools/getprevnodeversion.py | 16 ------- tools/getstability.py | 19 -------- tools/node-release-post-build.sh | 79 -------------------------------- 4 files changed, 130 deletions(-) delete mode 100644 tools/getnextnodeversion.py delete mode 100644 tools/getprevnodeversion.py delete mode 100644 tools/getstability.py delete mode 100755 tools/node-release-post-build.sh diff --git a/tools/getnextnodeversion.py b/tools/getnextnodeversion.py deleted file mode 100644 index 79ee771e2c49c3..00000000000000 --- a/tools/getnextnodeversion.py +++ /dev/null @@ -1,16 +0,0 @@ -import os,re - -node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src', - 'node_version.h') - -f = open(node_version_h) - -for line in f: - if re.match('#define NODE_MAJOR_VERSION', line): - major = line.split()[2] - if re.match('#define NODE_MINOR_VERSION', line): - minor = line.split()[2] - if re.match('#define NODE_PATCH_VERSION', line): - patch = int(line.split()[2]) + 1 - -print '%(major)s.%(minor)s.%(patch)s'% locals() diff --git a/tools/getprevnodeversion.py b/tools/getprevnodeversion.py deleted file mode 100644 index ff0d87d38cc26b..00000000000000 --- a/tools/getprevnodeversion.py +++ /dev/null @@ -1,16 +0,0 @@ -import os,re - -node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src', - 'node_version.h') - -f = open(node_version_h) - -for line in f: - if re.match('#define NODE_MAJOR_VERSION', line): - major = line.split()[2] - if re.match('#define NODE_MINOR_VERSION', line): - minor = line.split()[2] - if re.match('#define NODE_PATCH_VERSION', line): - patch = int(line.split()[2]) - 1 - -print '%(major)s.%(minor)s.%(patch)s'% locals() diff --git a/tools/getstability.py b/tools/getstability.py deleted file mode 100644 index 7fe51bf2db971c..00000000000000 --- a/tools/getstability.py +++ /dev/null @@ -1,19 +0,0 @@ -import os,re - -node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src', - 'node_version.h') - -f = open(node_version_h) - -for line in f: - if re.match('#define NODE_MAJOR_VERSION', line): - major = line.split()[2] - if re.match('#define NODE_MINOR_VERSION', line): - minor = line.split()[2] - if re.match('#define NODE_PATCH_VERSION', line): - patch = line.split()[2] - -if int(minor) % 2 == 0: - print 'stable' -else: - print 'unstable' diff --git a/tools/node-release-post-build.sh b/tools/node-release-post-build.sh deleted file mode 100755 index 5b1a19ed707cc9..00000000000000 --- a/tools/node-release-post-build.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash - -## This is to be used once jenkins has finished building the release - -set -e - -if [[ ! -e ../node-website/Makefile ]]; -then - echo "node-website must be checked out one level up" - exit 1 -fi - -stability="$(python tools/getstability.py)" -NODE_STABC="$(tr '[:lower:]' '[:upper:]' <<< ${stability:0:1})${stability:1}" -NODE_STABL="$stability" - -echo "Building for $stability" - -scp tj@nodejs.org:archive/node/tmp/v$(python tools/getnodeversion.py)/SHASUM* . -FILES="SHASUMS SHASUMS256" -for i in $FILES ; do gpg -s $i.txt; gpg --clearsign $i.txt; done -scp SHASUM* tj@nodejs.org:archive/node/tmp/v$(python tools/getnodeversion.py)/ - -ssh nodejs.org mkdir -p "dist/v$(python tools/getnodeversion.py)/{x64,docs}" -ssh nodejs.org ln -s ../dist/v$(python tools/getnodeversion.py)/docs docs/v$(python tools/getnodeversion.py) - -ssh root@nodejs.org mv /home/tj/archive/node/tmp/v$(python tools/getnodeversion.py)/* /home/node/dist/v$(python tools/getnodeversion.py)/ -ssh root@nodejs.org chown -R node:other /home/node/dist/v$(python tools/getnodeversion.py) - -# tag the release -# should be the same key used to sign the shasums -git tag -sm "$(bash tools/changelog-head.sh)" v$(python tools/getnodeversion.py) - -# push to github -git push git@github.com:joyent/node v$(python tools/getnodeversion.py)-release --tags - -# blog post and email -make email.md -( echo "" - echo "Shasums:" - echo '```' - cat SHASUMS.txt.asc - echo '```' ) >> email.md -( echo -n "date: " - date - echo -n "version: " - python tools/getnodeversion.py - echo "category: release" - echo "title: Node v"$(python tools/getnodeversion.py)" ($NODE_STABC)" - echo "slug: node-v"$(python tools/getnodeversion.py | sed 's|\.|-|g')"-$NODE_STABL" - echo "" - cat email.md ) > ../node-website/doc/blog/release/v$(python tools/getnodeversion.py).md - -if [ "$stability" = "stable" ]; -then - ## this needs to happen here because the website depends on the current node - ## node version - ## this will get the api docs in the right place - make website-upload - BRANCH="v$(python tools/getnodeversion.py | sed -E 's#\.[0-9]+$##')" - echo $(python tools/getnodeversion.py) > ../node-website/STABLE -else - BRANCH="master" -fi - -echo "Merging back into $BRANCH" - -# merge back into mainline stable branch -git checkout $BRANCH -git merge --no-ff v$(python tools/getnodeversion.py)-release - -# change the version number, set isrelease = 0 -## TODO automagic. -vim src/node_version.h -git commit -am "Now working on "$(python tools/getnodeversion.py) - -git push git@github.com:joyent/node $BRANCH - -echo "Now go do the website stuff"