15 lines
371 B
Bash
Executable File
15 lines
371 B
Bash
Executable File
#!/bin/bash
|
|
# Change to the directory where the script is located
|
|
cd "$(dirname "$0")"
|
|
# Exit immediately if a command exits with a non-zero status
|
|
set -e
|
|
|
|
echo "Building doctree binary..."
|
|
cd doctreecmd
|
|
cargo build --release
|
|
|
|
echo "Copying doctree binary to ~/hero/bin/"
|
|
mkdir -p ~/hero/bin/
|
|
cp target/release/doctree ~/hero/bin/
|
|
|
|
echo "Build and installation complete!" |