Skip to content

Commit

Permalink
pushd (thanks @asenchi)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Sep 16, 2011
1 parent 7d826aa commit c54cc27
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions support/package_node
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,29 @@ basedir="$( cd -P "$( dirname "$0" )" && pwd )"
tempdir="$( mktemp -t node_XXXX )"
rm -rf $tempdir
mkdir -p $tempdir
pushd $tempdir

cd $tempdir &&
# download and extract node
curl http://nodejs.org/dist/node-v${node_version}.tar.gz -o node.tgz
tar xzvf node.tgz

# download and extract node
curl http://nodejs.org/dist/node-v${node_version}.tar.gz -o node.tgz &&
tar xzvf node.tgz &&
# go into node dir
pushd node-v${node_version}

cd node-v${node_version} &&
# build and package nodejs for heroku
heroku make -v -o $tempdir/node-${node_version}.tgz

# build and package nodejs for heroku
heroku make -v -o $tempdir/node-${node_version}.tgz &&
# upload nodejs to s3
$basedir/s3/s3 put language-pack-nodejs \
nodejs-${node_version}.tgz $tempdir/node-${node_version}.tgz

# upload nodejs to s3
$basedir/s3 put language-pack-nodejs \
nodejs-${node_version}.tgz $tempdir/node-${node_version}.tgz &&
# go into scons
pushd tools/scons

# package scons
scons_version=$(ls tools/scons | grep "scons-local" | cut -d- -f3) &&
cd tools/scons &&
tar czvf $tempdir/scons-${scons_version}.tgz * &&
# package scons
scons_version=$(ls | grep "scons-local" | cut -d- -f3)
tar czvf $tempdir/scons-${scons_version}.tgz *

# upload scons to s3
$basedir/s3 put language-pack-nodejs \
scons-${scons_version}.tgz $tempdir/scons-${scons_version}.tgz
# upload scons to s3
$basedir/s3/s3 put language-pack-nodejs \
scons-${scons_version}.tgz $tempdir/scons-${scons_version}.tgz

0 comments on commit c54cc27

Please sign in to comment.