2024-05-09 19:15:37 +00:00
|
|
|
#!/bin/bash
|
2024-07-16 01:15:02 +00:00
|
|
|
echo "Configuring zenith...."
|
|
|
|
if grep -q "local/share/zcash-haskell" "$HOME/.bashrc"; then
|
|
|
|
echo "... Paths already exist"
|
|
|
|
else
|
|
|
|
# Set Paths
|
|
|
|
echo "... Adding new zenith paths to local configuration"
|
|
|
|
echo "export PKG_CONFIG_PATH=$HOME/.local/share/zcash-haskell" | tee -a ~/.bashrc
|
|
|
|
echo "export LD_LIBRARY_PATH=$HOME/.local/share/zcash-haskell" | tee -a ~/.bashrc
|
|
|
|
fi
|
|
|
|
echo "... Reloading paths"
|
2024-05-09 19:15:37 +00:00
|
|
|
source ~/.bashrc
|
2024-07-16 01:15:02 +00:00
|
|
|
echo "... building zcash-haskell"
|
2024-05-09 19:15:37 +00:00
|
|
|
cd zcash-haskell && cabal build
|
2024-07-16 01:15:02 +00:00
|
|
|
echo
|
|
|
|
echo "Done"
|
|
|
|
echo
|