update build.sh help and change license to GPLv3

This commit is contained in:
Duke Leto
2019-12-15 21:04:10 -05:00
parent ce44ecd960
commit d504a89cd7

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2019 The Hush developers
# Released under the GPLv3
set -eu -o pipefail set -eu -o pipefail
@@ -45,14 +47,14 @@ Usage:
$0 --help $0 --help
Show this help message and exit. Show this help message and exit.
$0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --enable-proton ] [ --disable-libs ] [ MAKEARGS... ] $0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --enable-proton ] [ --disable-libs ] [ MAKEARGS... ]
Build Zcash and most of its transitive dependencies from Build Hush and most of its transitive dependencies from
source. MAKEARGS are applied to both dependencies and Zcash itself. source. MAKEARGS are applied to both dependencies and Hush itself.
If --enable-lcov is passed, Zcash is configured to add coverage If --enable-lcov is passed, Hush is configured to add coverage
instrumentation, thus enabling "make cov" to work. instrumentation, thus enabling "make cov" to work.
If --disable-tests is passed instead, the Zcash tests are not built. If --disable-tests is passed instead, the Hush tests are not built.
If --disable-mining is passed, Zcash is configured to not build any mining If --disable-mining is passed, Hush is configured to not build any mining
code. It must be passed after the test arguments, if present. code. It must be passed after the test arguments, if present.
If --enable-proton is passed, Zcash is configured to build the Apache Qpid Proton If --enable-proton is passed, Hush is configured to build the Apache Qpid Proton
library required for AMQP support. This library is not built by default. library required for AMQP support. This library is not built by default.
It must be passed after the test/mining arguments, if present. It must be passed after the test/mining arguments, if present.
EOF EOF
@@ -97,6 +99,7 @@ as --version
ld -v ld -v
HOST="$HOST" BUILD="$BUILD" NO_PROTON="$PROTON_ARG" "$MAKE" "$@" -C ./depends/ V=1 HOST="$HOST" BUILD="$BUILD" NO_PROTON="$PROTON_ARG" "$MAKE" "$@" -C ./depends/ V=1
./autogen.sh ./autogen.sh
CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" $CONFIGURE_FLAGS CXXFLAGS='-g' CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" $CONFIGURE_FLAGS CXXFLAGS='-g'