Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
motxx committed Mar 2, 2017
1 parent d6b0e55 commit 926053b
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions docker/dev/scripts/mktar-iroha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,18 @@ if [ -z ${IROHA_RELEASE} ]; then
exit 1
fi

if [ -z ${IROHA_BUILD} ]; then
echo "[FATAL][mktar-iroha.sh] Empty variable IROHA_BUILD"
exit 1
fi


if [ -z ${IROHA_HOME} ]; then
echo "[FATAL][mktar-iroha.sh] Empty variable IROHA_HOME"
exit 1
fi
cd ${IROHA_RELEASE} || (echo "[-] No folder ${IROHA_RELEASE}" && exit 1)

mkdir -p $IROHA_RELEASE
cd ${IROHA_RELEASE}
rsync -av ${IROHA_BUILD}/bin $IROHA_RELEASE && \
rsync -av ${IROHA_BUILD}/lib $IROHA_RELEASE && \
rsync -av ${IROHA_BUILD}/my_test_bin $IROHA_RELEASE && \
rsync -av ${IROHA_BUILD}/test_bin $IROHA_RELEASE && \
rsync -av ${IROHA_HOME}/smart_contract/java_tests $IROHA_RELEASE && \
rsync -av ${IROHA_HOME}/external/src/google_leveldb/out-shared/ $IROHA_RELEASE/lib

# rsync -av ${IROHA_HOME}/core/vendor/ed25519/lib $IROHA_RELEASE
rsync -av ${IROHA_HOME}/external/src/google_leveldb/out-shared/ $IROHA_RELEASE/lib && \
rsync -av ${IROHA_HOME}/core/vendor/ed25519/lib $IROHA_RELEASE

tar cvf /tmp/iroha.tar \
/usr/lib/libproto* \
/usr/local
/usr/local

exit 0

0 comments on commit 926053b

Please sign in to comment.