Skip to content
This repository
Browse code

Fix release scripts for new output of meteor --version.

  • Loading branch information...
commit 76fd14132aa84e12d07c37722c56872565dc359b 1 parent 2355a7a
Nick Martin n1mmy authored

Showing 2 changed files with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  admin/build-release.sh
  2. +5 1 admin/cut-release.sh
2  admin/build-release.sh
@@ -21,7 +21,7 @@ mkdir -p "$PREFIX"
21 21 ./install.sh
22 22
23 23 # get the version number.
24   -VERSION="$($PREFIX/bin/meteor --version | sed 's/.* //')"
  24 +VERSION="$($PREFIX/bin/meteor --version | perl -pe 's/.+ ([^ \(]+)( \(.+\))*/$1/')"
25 25
26 26 # tar it up
27 27 OUTDIR="$TOPDIR/dist"
6 admin/cut-release.sh
@@ -2,6 +2,10 @@
2 2
3 3 set -e
4 4
  5 +# XXX
  6 +echo "This script is currently broken and does not represent the new release procedure. Don't use it!"
  7 +exit 1
  8 +
5 9 # cd to top level dir
6 10 cd `dirname $0`
7 11 cd ..
@@ -46,7 +50,7 @@ export NODE_PATH="$(pwd)/dev_bundle/lib/node_modules"
46 50 # get the tarball. XXX copied from build-release.sh
47 51 UNAME=$(uname)
48 52 ARCH=$(uname -m)
49   -VERSION="$(/usr/local/bin/meteor --version | sed 's/.* //')"
  53 +VERSION="$(/usr/local/bin/meteor --version | perl -pe 's/.+ ([^ \(]+)( \(.+\))*/$1/')"
50 54 TARBALL=~/meteor-package-${UNAME}-${ARCH}-${VERSION}.tar.gz
51 55 test -f "$TARBALL"
52 56

0 comments on commit 76fd141

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