diff options
author | Canop <cano.petrole@gmail.com> | 2020-09-09 18:02:41 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-09-09 18:02:41 +0200 |
commit | 5edab5fd73ac38df12ff4ce7db21091f6bd8acbb (patch) | |
tree | 4d6fcdfae4f9b8a45a8529cff2e9df184b578a1a /compile-all-targets.sh | |
parent | 752d44bb17b88da634818162113c9a8a0fb08d59 (diff) |
ctrl-v now inserts the clipboard content in the input
when the "clipboard" feature is on.
This behaviour may be mapped to another key, it's based on
the new `:input_paste` verb
Diffstat (limited to 'compile-all-targets.sh')
-rwxr-xr-x | compile-all-targets.sh | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/compile-all-targets.sh b/compile-all-targets.sh index 65a6c5a..9c8eaf2 100755 --- a/compile-all-targets.sh +++ b/compile-all-targets.sh @@ -1,21 +1,25 @@ # WARNING: This script is NOT meant for normal installation, it's dedicated -# to the compilation of all supported targets. This is a long process and -# it involves specialized toolchains. +# to the compilation of all supported targets, from a linux machine. +# This is a long process and it involves specialized toolchains. # For usual compilation do # cargo build --release # or read all possible installation solutions on # https://dystroy.org/broot/documentation/installation/ +H1="\n\e[30;104;1m\e[2K\n\e[A" # style first header +H2="\n\e[30;104m\e[1K\n\e[A" # style second header +EH="\e[00m\n\e[2K" # end header + 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" +echo -e "${H1}Compilation of all targets for broot $version${EH}" # clean previous build -echo "cleaning build" rm -rf build mkdir build +echo " build cleaned" # build the linux version -echo -e "\e[30m\e[104mCompiling the linux version \e[00m" +echo -e "${H2}Compiling the linux version${EH}" cargo build --release strip target/release/broot mkdir build/x86_64-linux/ @@ -23,26 +27,27 @@ cp target/release/broot build/x86_64-linux/ # find and copy the 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" +echo -e "${H2}copying completion scripts${EH}" mkdir build/completion cp "$(broot -c ":gi;release;:focus;broot.bash;:parent;:pp" target)/"* build/completion +echo " Done" # build the windows version # use cargo cross -echo -e "\e[30m\e[104mCompiling the Windows version \e[00m" +echo -e "${H2}Compiling the Windows version${EH}" 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" +echo -e "${H2}Compiling the Raspberry version${EH}" 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" +echo -e "${H2}Compiling the MUSL version${EH}" 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 |