From 73f9a1b08c7ff504838e46df93b46647572dcd72 Mon Sep 17 00:00:00 2001 From: nolash Date: Thu, 29 Apr 2021 08:40:26 +0200 Subject: [PATCH] Move python scripts to subfolder --- Dockerfile | 24 ------------------- .../calculate_eip165.py | 0 .../reduce_to_methods.py | 0 to_interface.sh | 4 ++-- 4 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 Dockerfile rename calculate_eip165.py => scripts/calculate_eip165.py (100%) rename reduce_to_methods.py => scripts/reduce_to_methods.py (100%) diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index bbf5385..0000000 --- a/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -FROM ethereum/solc:0.6.12 - -# The solc image messes up the alpine environment, so we have to go all over again -FROM alpine -COPY --from=0 /usr/bin/solc /usr/bin/solc - -RUN apk update && \ - apk add make - -WORKDIR /usr/src - -COPY ./Makefile ./cic-contracts/Makefile -COPY ./*.sol ./cic-contracts/ - -RUN cd cic-contracts && \ - make -B && make install -B - -#RUN mkdir -vp /usr/local/share/cic/solidity && \ -# cp -rv cic-contracts/abis - -LABEL authors="Louis Holbrook 0826EDA1702D1E87C6E2875121D2E7BB88C2A746" -LABEL spdx-license-identifier="GPL-3.0-or-later" -LABEL description="Ethereum smart contract interfaces used by the CIC component suite" -LABEL version="3" diff --git a/calculate_eip165.py b/scripts/calculate_eip165.py similarity index 100% rename from calculate_eip165.py rename to scripts/calculate_eip165.py diff --git a/reduce_to_methods.py b/scripts/reduce_to_methods.py similarity index 100% rename from reduce_to_methods.py rename to scripts/reduce_to_methods.py diff --git a/to_interface.sh b/to_interface.sh index 1f48911..0f50fd4 100644 --- a/to_interface.sh +++ b/to_interface.sh @@ -3,5 +3,5 @@ d=`mktemp -d` b=`basename $1` s=${b%%.*} -python3 reduce_to_methods.py $1 > $d/$b -python3 calculate_eip165.py $d/$b +python3 scripts/reduce_to_methods.py $(realpath $1) > $d/$b +python3 scripts/calculate_eip165.py $d/$b