Permalink
Browse files

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

  • Loading branch information...
1 parent 2355a7a commit 76fd14132aa84e12d07c37722c56872565dc359b @n1mmy n1mmy committed Mar 20, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 admin/build-release.sh
  2. +5 −1 admin/cut-release.sh
View
@@ -21,7 +21,7 @@ mkdir -p "$PREFIX"
./install.sh
# get the version number.
-VERSION="$($PREFIX/bin/meteor --version | sed 's/.* //')"
+VERSION="$($PREFIX/bin/meteor --version | perl -pe 's/.+ ([^ \(]+)( \(.+\))*/$1/')"
# tar it up
OUTDIR="$TOPDIR/dist"
View
@@ -2,6 +2,10 @@
set -e
+# XXX
+echo "This script is currently broken and does not represent the new release procedure. Don't use it!"
+exit 1
+
# cd to top level dir
cd `dirname $0`
cd ..
@@ -46,7 +50,7 @@ export NODE_PATH="$(pwd)/dev_bundle/lib/node_modules"
# get the tarball. XXX copied from build-release.sh
UNAME=$(uname)
ARCH=$(uname -m)
-VERSION="$(/usr/local/bin/meteor --version | sed 's/.* //')"
+VERSION="$(/usr/local/bin/meteor --version | perl -pe 's/.+ ([^ \(]+)( \(.+\))*/$1/')"
TARBALL=~/meteor-package-${UNAME}-${ARCH}-${VERSION}.tar.gz
test -f "$TARBALL"

0 comments on commit 76fd141

Please sign in to comment.