Skip to content
Snippets Groups Projects
Commit 335c80a3 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Proveer solc, pero no por defecto

parent 0149d3cc
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
trap "exit 1" ERR
set -x
test -d ~/new || mkdir ~/new
cd ~/new
if [ -d "solidity" ]
then
cd solidity
git pull
else
git clone --recursive https://github.com/ethereum/solidity.git
cd solidity
fi
scripts/install_deps.sh
mkdir -p build
cd build
cmake ..
make solc
install --owner=bfa --target-directory=$( echo ~bfa )/bin solc/solc
bin/solc 0 → 100755
#!/bin/bash
# (c) 20190524 NIC Argentina, GPLv2
# Robert Martin-Legene <robert@nic.ar>
# See if PATH is set up incorrectly (look for another install of this binary).
set -x
mypath=$( realpath $0 )
myname=${mypath##*/}
for p in ${PATH//:/ }
do
checkfile=${p}/${myname}
if [ -x ${checkfile} ]
then
if [ $( realpath ${checkfile} ) = $mypath ]
then
continue
fi
# we found another one, yay!
exec ${checkfile} "$@"
exit 1
fi
done
# not found .. tell to install it.
set +x
exec >&2
echo "***********************************"
echo "solc no esta instalado."
echo "Para instalarlo, usa installsolc.sh"
echo "***********************************"
exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment