Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blockchain
nucleo
Commits
335c80a3
Commit
335c80a3
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Proveer solc, pero no por defecto
parent
0149d3cc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/installsolc.sh
+23
-0
23 additions, 0 deletions
bin/installsolc.sh
bin/solc
+32
-0
32 additions, 0 deletions
bin/solc
with
55 additions
and
0 deletions
bin/installsolc.sh
0 → 100755
+
23
−
0
View file @
335c80a3
#!/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
This diff is collapsed.
Click to expand it.
bin/solc
0 → 100755
+
32
−
0
View file @
335c80a3
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment