summaryrefslogtreecommitdiffstats
path: root/compile-all-targets.sh
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-01-19 15:15:53 +0100
committerCanop <cano.petrole@gmail.com>2020-01-19 15:15:53 +0100
commit198ab035da1434284c94173678ef94ff08418576 (patch)
treeae7934101295138a8eb96a1834036d82eb0ef1cc /compile-all-targets.sh
parent32bfc51e718d8d726229e72a02426f04217fbed9 (diff)
version 0.12v0.12.0
Diffstat (limited to 'compile-all-targets.sh')
-rwxr-xr-xcompile-all-targets.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/compile-all-targets.sh b/compile-all-targets.sh
index ca2311c..ec6f81a 100755
--- a/compile-all-targets.sh
+++ b/compile-all-targets.sh
@@ -8,10 +8,12 @@
# https://dystroy.org/broot/documentation/installation/
# clean previous build
+echo "cleaning build"
rm -rf build
mkdir build
# build the linux version
+echo "compiling the linux version"
cargo build --release
strip target/release/broot
mkdir build/x86_64-linux/
@@ -19,12 +21,14 @@ 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"
mkdir build/completion
-cp "$(broot -c ":gi release :focus broot.bash :parent :pp" target)/"* build/completion
+cp "$(broot -c ":gi;release :focus;broot.bash :parent;:pp" target)/"* build/completion
# build the windows version
# You need first to install the proper cargo toolchain:
# rustup target add x86_64-pc-windows-gnu
+echo "compiling the Windows version"
cargo 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/
@@ -34,6 +38,7 @@ cp target/x86_64-pc-windows-gnu/release/broot.exe build/x86_64-pc-windows-gnu/
# and a linker:
# rustup target add armv7-unknown-linux-gnueabihf
# sudo apt-get install gcc-8-multilib-arm-linux-gnueabihf
+echo "compiling the Raspberry version"
RUSTFLAGS="-C linker=arm-linux-gnueabihf-gcc-8" cargo 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/