Skip to content

Commit

Permalink
update promote scripts to match release
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 22, 2015
1 parent 9460506 commit d175858
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
5 changes: 4 additions & 1 deletion setup/www/tools/promote/_resha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ if [ "X${version}" == "X" ]; then
exit 1
fi

(cd "${dstdir}/${version}" && shasum -a256 $(ls node* iojs* win-*/* 2> /dev/null) > SHASUMS256.txt) || exit 1
(cd "${dstdir}/${version}" && shasum -a256 $(ls node* openssl* iojs* win-*/* x64/* 2> /dev/null) > SHASUMS256.txt) || exit 1
if [[ $version =~ ^v[0] ]]; then
(cd "${dstdir}/${version}" && shasum $(ls node* openssl* x64/* 2> /dev/null) > SHASUMS.txt) || exit 1
fi
echo "${dstdir}/${version}/SHASUMS256.txt"
/home/dist/tools/dist-indexer/dist-indexer.js --dist $dstdir --indexjson ${dstdir}/index.json --indextab ${dstdir}/index.tab
find "${dstdir}/${version}" -type f -exec chmod 644 '{}' \;
Expand Down
12 changes: 6 additions & 6 deletions setup/www/tools/promote/promote_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ site=$1
__dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [ "X$site" != "Xiojs" ] && [ "X$site" != "Xnodejs" ]; then
echo "Usage: promote_nightly.sh < iojs | nodejs > <version>"
exit 1
fi

if [ "X$2" == "X" ]; then
echo "Usage: promote_nightly.sh < iojs | nodejs > <version>"
echo "Usage: promote_nightly.sh < iojs | nodejs >"
exit 1
fi

Expand All @@ -27,3 +22,8 @@ srcdir=$next_nightly_srcdir
dstdir=$next_nightly_dstdir

. ${__dirname}/_promote.sh $site

srcdir=$rc_srcdir
dstdir=$rc_dstdir

. ${__dirname}/_promote.sh $site
12 changes: 9 additions & 3 deletions setup/www/tools/promote/settings
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
staging_rootdir=/home/staging/${site}/
dist_rootdir=/home/dist/${site}/
nightly_srcdir=${staging_rootdir}nightly
next_nightly_srcdir=${staging_rootdir}next-nightly

release_srcdir=${staging_rootdir}release
release_dstdir=${dist_rootdir}release

rc_srcdir=${staging_rootdir}custom
rc_dstdir=${dist_rootdir}rc

nightly_srcdir=${staging_rootdir}nightly
nightly_dstdir=${dist_rootdir}nightly

next_nightly_srcdir=${staging_rootdir}next-nightly
next_nightly_dstdir=${dist_rootdir}next-nightly
release_dstdir=${dist_rootdir}release

0 comments on commit d175858

Please sign in to comment.