mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[TMP] wasm-rebuild: Switch to latest storebytecode.sh
This commit is contained in:
parent
7e6241622e
commit
d24c7f3e49
@ -40,7 +40,7 @@ RESET='\033[0m'
|
|||||||
|
|
||||||
function generate_bytecode_report
|
function generate_bytecode_report
|
||||||
{
|
{
|
||||||
rm -rf /tmp/report.txt
|
rm -rf /src/report.txt
|
||||||
|
|
||||||
local EXIT_STATUS
|
local EXIT_STATUS
|
||||||
|
|
||||||
@ -63,13 +63,13 @@ function generate_bytecode_report
|
|||||||
ln -sf "$1" $dir/soljson.js
|
ln -sf "$1" $dir/soljson.js
|
||||||
done
|
done
|
||||||
|
|
||||||
/tmp/storebytecode.sh >/dev/null 2>&1
|
REPO_ROOT=/src /tmp/solidity-scripts/bytecodecompare/storebytecode.sh >/dev/null 2>&1
|
||||||
)
|
)
|
||||||
EXIT_STATUS=$?
|
EXIT_STATUS=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $EXIT_STATUS -eq 0 ] && [ -f /tmp/report.txt ] && grep -q -v -c -e "ERROR" -e "NO BYTECODE" /tmp/report.txt; then
|
if [ $EXIT_STATUS -eq 0 ] && [ -f /src/report.txt ] && grep -q -v -c -e "ERROR" -e "NO BYTECODE" /src/report.txt; then
|
||||||
mv /tmp/report.txt "$2"
|
mv /src/report.txt "$2"
|
||||||
echo -e "${GREEN}SUCCESS${RESET}"
|
echo -e "${GREEN}SUCCESS${RESET}"
|
||||||
else
|
else
|
||||||
echo -e "${RED}FAILURE${RESET}"
|
echo -e "${RED}FAILURE${RESET}"
|
||||||
@ -192,11 +192,7 @@ fi
|
|||||||
echo "Extract bytecode comparison scripts from v0.6.1..."
|
echo "Extract bytecode comparison scripts from v0.6.1..."
|
||||||
cd /root/project
|
cd /root/project
|
||||||
git checkout v0.6.1 --quiet
|
git checkout v0.6.1 --quiet
|
||||||
cp scripts/bytecodecompare/storebytecode.sh /tmp
|
cp -r scripts /tmp/solidity-scripts
|
||||||
# shellcheck disable=SC2016
|
|
||||||
sed -i -e 's/rm -rf "\$TMPDIR"/cp "\$TMPDIR"\/report.txt \/tmp\/report.txt ; rm -rf "\$TMPDIR"/' /tmp/storebytecode.sh
|
|
||||||
sed -i -e 's/REPO_ROOT=.*/REPO_ROOT=\/src/' /tmp/storebytecode.sh
|
|
||||||
sed -i -e 's/git clone/git clone --branch '"${SOLC_JS_BRANCH}"'/' /tmp/storebytecode.sh
|
|
||||||
export SOLC_EMSCRIPTEN="On"
|
export SOLC_EMSCRIPTEN="On"
|
||||||
|
|
||||||
echo "Check out solc-js repository..."
|
echo "Check out solc-js repository..."
|
||||||
|
Loading…
Reference in New Issue
Block a user