aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author~login@aussies.space <login@aussies.space>2019-11-14 10:38:30 +1100
committer~login@aussies.space <login@aussies.space>2019-11-14 10:38:30 +1100
commite0d4852f2792eea07e827f29803ba6b30e16f919 (patch)
tree481eaa080c7a21fc27f0bbc7df0fffb6a70fe35c
parent4aed82e1ae6ce1e8442dade2c811eda3e2e27c05 (diff)
downloadtcoin-e0d4852f2792eea07e827f29803ba6b30e16f919.tar.gz
Included quotation marks in compile_tcoin and compile_pcoin generated by ntcoin
In order to be robust against spaces present in the directories passed to ntcoin, quotes around the additional directory to search for includes (g++ -I) and the output file directory specified in g++ are now included in ntcoin. ntcoin generates the compile_tcoin and compile_pcoin scripts.
-rwxr-xr-xntcoin4
1 files changed, 2 insertions, 2 deletions
diff --git a/ntcoin b/ntcoin
index a421512..f8d2585 100755
--- a/ntcoin
+++ b/ntcoin
@@ -183,7 +183,7 @@ else
exit 1
else
/bin/echo '#!/bin/bash
-(/usr/bin/g++ -I'`/usr/bin/realpath -s $1`'/tcoin/bin '`/bin/pwd`'/tcoin.cpp -o "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin" -std=c++11) \
+(/usr/bin/g++ -I"'`/usr/bin/realpath -s $1`'/tcoin/bin" "'`/bin/pwd`'/tcoin.cpp" -o "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin" -std=c++11) \
&& (/bin/chmod 550 "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin") \
&& (/bin/chmod u+s "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin") \
&& (/bin/chmod u+w "'`/usr/bin/realpath -s $2`'/tcoin") \
@@ -203,7 +203,7 @@ else
exit 1
else
/bin/echo '#!/bin/bash
-(/usr/bin/g++ -I'`/usr/bin/realpath -s $1`'/tcoin/bin '`/bin/pwd`'/pcoin.cpp -o "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin" -std=c++11) \
+(/usr/bin/g++ -I"'`/usr/bin/realpath -s $1`'/tcoin/bin" "'`/bin/pwd`'/pcoin.cpp" -o "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin" -std=c++11) \
&& (/bin/chmod 550 "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin") \
&& (/bin/chmod u+s "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin")
&& (/bin/chmod u+w "'`/usr/bin/realpath -s $2`'/pcoin") \