Files
ferrisfind/install.sh
T

26 lines
893 B
Bash
Executable File

#!/bin/bash
echo "compiling ferrisfind..."
if cargo build --release; then
echo "ferrisfind compiled successfully!"
if ldd ./target/release/hyphae_cmd | grep libtika | grep "not found"; then
echo "libtika not found in current sytem, copying from the build directory."
echo "this will need sudo privileges..."
if sudo cp ./target/release/build/extractous-*/out/libs/libtika_native.so /usr/lib64/; then
echo "library copied successfully!"
else
echo "error copying libary!"
exit
fi
fi
echo "copying binary to your path..."
echo "this will require sudo privileges"
if sudo cp ./target/release/ferrisfind /usr/bin; then
echo "install complete!"
else
echo "error copying binary!"
fi
else
echo "error compiling biary! make sure rust and cargo are installed and setup!"
fi