Skip to content

Commit

Permalink
Delete all products before generate them
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed Jun 18, 2016
1 parent 1a69ae6 commit 752442d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/BigRedButton
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ PRODUCTS=(bin lib libexec share *-nodeos-linux-musl)
PREBUILD=prebuilds/linux-$NODE_ARCH.tar.gz


# Clean products previously to create them
rm -rf ${PRODUCTS[@]} || exit 11


#
# Build cross toolchain for all supported platforms
#
Expand All @@ -25,12 +29,6 @@ PLATFORM=pc_qemu_64 npm run build || exit 2

STEP_DIR=$PREBUILD

# Delete symlinks stubs
(
cd bin || exit 10
rm `node -p "Object.keys(require('./package.json').bin).join(' ')"` || exit 11
) || exit $?

mkdir -p prebuilds &&
tar -cf - ${PRODUCTS[@]} | gzip > $PREBUILD || err 12

Expand Down

0 comments on commit 752442d

Please sign in to comment.