Skip to content

Commit

Permalink
Merge pull request ethereum#1073 from ethereum/develop
Browse files Browse the repository at this point in the history
Release merge for 0.4.1
  • Loading branch information
chriseth authored Sep 9, 2016
2 parents acd334c + 79867f4 commit 4fc6fc2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include(EthPolicy)
eth_policy()

# project name and version should be set after cmake_policy CMP0048
set(PROJECT_VERSION "0.4.0")
set(PROJECT_VERSION "0.4.1")
project(solidity VERSION ${PROJECT_VERSION})

# Let's find our dependencies
Expand Down
2 changes: 1 addition & 1 deletion cmake/scripts/buildinfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if (SOL_COMMIT_HASH)
endif()

if (SOL_COMMIT_HASH AND SOL_LOCAL_CHANGES)
set(SOL_COMMIT_HASH "${SOL_COMMIT_HASH}-mod")
set(SOL_COMMIT_HASH "${SOL_COMMIT_HASH}.mod")
endif()

if (NOT SOL_COMMIT_HASH)
Expand Down
8 changes: 5 additions & 3 deletions libsolidity/interface/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ bytes dev::solidity::binaryVersion()
solAssert(i < VersionString.size() && VersionString[i] == '.', "");
++i;
ret.push_back(byte(parseDecimal()));
solAssert(i < VersionString.size() && VersionString[i] == '-', "");
solAssert(i < VersionString.size() && (VersionString[i] == '-' || VersionString[i] == '+'), "");
++i;
size_t commitpos = VersionString.find("commit.");
solAssert(commitpos != string::npos, "");
i = commitpos + 7;
solAssert(i + 7 < VersionString.size(), "");
bytes commitHash = fromHex(VersionString.substr(i, 8));
if (commitHash.empty())
commitHash = bytes(4, 0);
solAssert(!commitHash.empty(), "");
ret += commitHash;
solAssert(ret.size() == 1 + 3 + 4, "");

Expand Down
6 changes: 3 additions & 3 deletions scripts/travis-emscripten/publish_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ VER=$(cat CMakeLists.txt | grep 'set(PROJECT_VERSION' | sed -e 's/.*set(PROJECT_
test -n "$VER"
VER="v$VER"
COMMIT=$(git rev-parse --short HEAD)
DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%F)
DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%m.%d)

ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
Expand All @@ -52,14 +52,14 @@ git config user.email "[email protected]"
git checkout -B gh-pages origin/gh-pages
git clean -f -d -x
# We only want one release per day and we do not want to push the same commit twice.
if ls ./bin/soljson-"$VER-$DATE"-*.js || ls ./bin/soljson-*-"$COMMIT.js"
if ls ./bin/soljson-"$VER-nightly.$DATE"-*.js || ls ./bin/soljson-*"commit.$COMMIT.js"
then
echo "Not publishing, we already published this version today."
exit 0
fi

# This file is assumed to be the product of the build_emscripten.sh script.
cp ../soljson.js ./bin/"soljson-$VER-$DATE-$COMMIT.js"
cp ../soljson.js ./bin/"soljson-$VER-nightly.$DATE+commit.$COMMIT.js"
node ./update
cd bin
LATEST=$(ls -r soljson-v* | head -n 1)
Expand Down
2 changes: 1 addition & 1 deletion test/contracts/AuctionRegistrar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace
{

static char const* registrarCode = R"DELIMITER(
pragma solidity ^0.3.5;
pragma solidity ^0.4.0;
contract NameRegister {
function addr(string _name) constant returns (address o_owner);
Expand Down
2 changes: 1 addition & 1 deletion test/contracts/FixedFeeRegistrar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static char const* registrarCode = R"DELIMITER(
// @authors:
// Gav Wood <[email protected]>
pragma solidity ^0.3.5;
pragma solidity ^0.4.0;
contract Registrar {
event Changed(string indexed name);
Expand Down
2 changes: 1 addition & 1 deletion test/contracts/Wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static char const* walletCode = R"DELIMITER(
// some number (specified in constructor) of the set of owners (specified in the constructor, modifiable) before the
// interior is executed.
pragma solidity ^0.3.5;
pragma solidity ^0.4.0;
contract multiowned {
Expand Down
2 changes: 1 addition & 1 deletion test/libsolidity/SolidityEndToEndTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5961,7 +5961,7 @@ BOOST_AUTO_TEST_CASE(version_stamp_for_libraries)
bytes runtimeCode = compileAndRun(sourceCode, 0, "lib");
BOOST_CHECK(runtimeCode.size() >= 8);
BOOST_CHECK_EQUAL(runtimeCode[0], int(Instruction::PUSH6)); // might change once we switch to 1.x.x
BOOST_CHECK_EQUAL(runtimeCode[1], 3); // might change once we switch away from x.3.x
BOOST_CHECK_EQUAL(runtimeCode[1], 4); // might change once we switch away from x.4.x
BOOST_CHECK_EQUAL(runtimeCode[7], int(Instruction::POP));
}

Expand Down

0 comments on commit 4fc6fc2

Please sign in to comment.