Skip to content

Commit 6b7142b

Browse files
committed
feat(release): v0.0.0
1 parent 000e0e3 commit 6b7142b

File tree

5 files changed

+1002
-0
lines changed

5 files changed

+1002
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
node_modules
3+
solc-static-linux-*
4+
solc-static-*
5+
solc*
6+
*.zip
7+
*.tar.gz
8+
*.lz4
9+
*.bin

LICENSE.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2022, Sam Bacha <@sambacha>
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

get.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
#!/usr/bin/env bash
3+
# Linux Only
4+
5+
if [[ -z $1 ]]; then
6+
>&2 echo "Usage: $(basename "$0") [N.M|latest]"
7+
>&2 echo ""
8+
>&2 echo "To Install v0.7.2:"
9+
>&2 echo ""
10+
>&2 echo ' $' "$(basename "$0") 7.2"
11+
>&2 echo ""
12+
>&2 echo "To Install latest version:"
13+
>&2 echo ""
14+
>&2 echo ' $' "$(basename "$0") latest"
15+
>&2 echo ""
16+
>&2 echo "Versions Downloaded:"
17+
>&2 echo ""
18+
for name in solc-static-linux-v*
19+
do
20+
echo -n ' v'
21+
echo "$name" | cut -f 2 -d 'v'
22+
done
23+
exit 1
24+
fi
25+
26+
if [[ $1 == "latest" ]]; then
27+
latest=$(curl -s 'https://github.com/ethereum/solidity/releases.atom' | grep ethereum/solidity/releases/tag/v0 | cut -f 2 -d 'v' | cut -f 1 -d '"' | cut -f 2- -d '.' | head -n 1)
28+
solc_ver="v0.$latest"
29+
else
30+
solc_ver="v0.$1"
31+
fi
32+
33+
solc_url="https://github.com/ethereum/solidity/releases/download/$solc_ver/solc-static-linux"
34+
solc_bin="solc-static-linux-$solc_ver"
35+
36+
if [[ -f $solc_bin ]]; then
37+
>&2 echo "Note: $solc_bin file already exists!"
38+
exit 0
39+
fi
40+
41+
echo "Downloading..."
42+
echo " From: $solc_url"
43+
echo " To: $solc_bin"
44+
45+
wget -q --show-progress --progress=bar -O "$solc_bin" "$solc_url"
46+
47+
48+
chmod 755 "$solc_bin"
49+
exit 0

0 commit comments

Comments
 (0)