diff options
author | login <login@tilde.team> | 2020-02-09 09:52:42 +0000 |
---|---|---|
committer | login <login@tilde.team> | 2020-02-09 09:52:42 +0000 |
commit | e61109eca57f5b5a337f98f99b804186d4e5c095 (patch) | |
tree | 003d34b688339266049a441833d0a7a1be1d7654 /ntcoin | |
parent | fb5200c58d8c2dcae4c196d9a2d5f800f7facded (diff) | |
download | tcoin-e61109eca57f5b5a337f98f99b804186d4e5c095.tar.gz |
Ensuring verifiability of build by copying tcoin_defs.cpp and pcoin_defs.cpp
To ensure that builds are verifiable, tcoin_defs.cpp and pcoin_defs.cpp are copied from tcoin/bin to ~/bin (i.e., to the same directory as the 'tcoin' and 'pcoin' executables)
Diffstat (limited to 'ntcoin')
-rwxr-xr-x | ntcoin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ntcoin b/ntcoin index a54bf2d..0483779 100755 --- a/ntcoin +++ b/ntcoin @@ -191,7 +191,8 @@ else && (([ -f "'`/usr/bin/realpath -s $2`'/tcoin" ] && (/bin/chmod u+w "'`/usr/bin/realpath -s $2`'/tcoin")) || /bin/true) \ && (/bin/cp "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin" "'`/usr/bin/realpath -s $2`'/tcoin") \ && (/bin/chmod 550 "'`/usr/bin/realpath -s $2`'/tcoin") \ -&& (/bin/chmod u+s "'`/usr/bin/realpath -s $2`'/tcoin")' > "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" +&& (/bin/chmod u+s "'`/usr/bin/realpath -s $2`'/tcoin") \ +&& (/bin/cp "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin_defs.cpp'" "'`/usr/bin/realpath -s $2`'/tcoin_defs.cpp'")' > "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" /bin/echo '#!/bin/bash '`which nano`' "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin" @@ -212,7 +213,8 @@ else && (([ -f "'`/usr/bin/realpath -s $2`'/pcoin" ] && (/bin/chmod u+w "'`/usr/bin/realpath -s $2`'/pcoin")) || /bin/true) \ && (/bin/cp "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin" "'`/usr/bin/realpath -s $2`'/pcoin") \ && (/bin/chmod 550 "'`/usr/bin/realpath -s $2`'/pcoin") \ -&& (/bin/chmod u+s "'`/usr/bin/realpath -s $2`'/pcoin")' > "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" +&& (/bin/chmod u+s "'`/usr/bin/realpath -s $2`'/pcoin") \ +&& (/bin/cp "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin_defs.cpp'" "'`/usr/bin/realpath -s $2`'/pcoin_defs.cpp'")'' > "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" /bin/echo '#!/bin/bash '`which nano`' "'`/bin/pwd`'/pcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" |