diff options
author | Canop <cano.petrole@gmail.com> | 2020-09-08 20:58:23 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-09-08 20:58:23 +0200 |
commit | 25f1761e2da8026c5842d19b1f8fd79ce85f0255 (patch) | |
tree | 3a357ccddc58d6886c963bb5a511749a6dcc0aa9 /compile-all-targets.sh | |
parent | 313234bcfd24181c9558f2c5f6f735510c1dfda7 (diff) |
fix cross-compilation - define a "clipboard" feature
Diffstat (limited to 'compile-all-targets.sh')
-rwxr-xr-x | compile-all-targets.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/compile-all-targets.sh b/compile-all-targets.sh index 29ea50c..65a6c5a 100755 --- a/compile-all-targets.sh +++ b/compile-all-targets.sh @@ -6,8 +6,8 @@ # or read all possible installation solutions on # https://dystroy.org/broot/documentation/installation/ -version=$(sed 's/version = "\([0-9.]\{1,\}\)"/\1/;t;d' Cargo.toml | head -1) -echo "=== Compilation of all targets for broot $version ===" +version=$(sed 's/version = "\([0-9.]\{1,\}\(-[a-z]\+\)\?\)"/\1/;t;d' Cargo.toml | head -1) +echo -e "\e[105m Compilation of all targets for broot $version \e[00m" # clean previous build echo "cleaning build" @@ -15,32 +15,34 @@ rm -rf build mkdir build # build the linux version -echo "compiling the linux version" +echo -e "\e[30m\e[104mCompiling the linux version \e[00m" cargo build --release strip target/release/broot mkdir build/x86_64-linux/ cp target/release/broot build/x86_64-linux/ # find and copy the completion scripts -# (they're built as part of the normal compilation) -echo "copying completion scripts" +# (they're built as part of the normal compilation so must come after the linux version) +echo -e "\e[30m\e[104mcopying completion scripts\e[00m" mkdir build/completion cp "$(broot -c ":gi;release;:focus;broot.bash;:parent;:pp" target)/"* build/completion # build the windows version # use cargo cross -echo "compiling the Windows version" +echo -e "\e[30m\e[104mCompiling the Windows version \e[00m" cross build --target x86_64-pc-windows-gnu --release mkdir build/x86_64-pc-windows-gnu cp target/x86_64-pc-windows-gnu/release/broot.exe build/x86_64-pc-windows-gnu/ # build the Raspberry version # use cargo cross +echo -e "\e[30m\e[104mCompiling the Raspberry version \e[00m" cross build --target armv7-unknown-linux-gnueabihf --release mkdir build/armv7-unknown-linux-gnueabihf cp target/armv7-unknown-linux-gnueabihf/release/broot build/armv7-unknown-linux-gnueabihf/ # build a musl version +echo -e "\e[30m\e[104mCompiling the MUSL version \e[00m" cross build --release --target x86_64-unknown-linux-musl mkdir build/x86_64-unknown-linux-musl cp target/x86_64-unknown-linux-musl/release/broot build/x86_64-unknown-linux-musl |