Files

18 lines
545 B
Plaintext
Raw Permalink Normal View History

2021-03-03 18:54:12 +01:00
#!/bin/sh
if ! [ -f target/release/indivisible ]
then
echo "ERROR: you have to compile a release build of indivisible first."
echo "Please run 'cargo build --release'"
exit 1
fi
PREFIX="${PREFIX:-/usr/local}"
2021-03-03 18:54:12 +01:00
echo "Installing ./target/release/indivisible to $PREFIX/bin/"
install -Dm755 ./target/release/indivisible "$PREFIX/bin/indivisible"
2025-12-04 09:49:49 +01:00
gzip -k indivisible.1
2021-03-03 18:54:12 +01:00
echo "Installing manpage to $PREFIX/share/man/man1/"
install -Dm644 ./indivisible.1.gz "$PREFIX/share/man/man1/indivisible.1.gz"
2025-12-04 09:49:49 +01:00
# clean up compressed file
2021-03-03 18:54:12 +01:00
rm indivisible.1.gz