diff --git a/.gitignore b/.gitignore index 9a0f49a..7540a94 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,5 @@ zenith.db zenith.log zenith.db-shm zenith.db-wal -installer/*.tar.gz -installer/*.tar.gz.prev -docker_files/zenith-docker_* +docker_files/zenith-docker_0.6.0.0.7z +docker_files/zenith-docker_0.6.0.0/zenith-docker_0.6.0.0.tar diff --git a/configure b/configure index df9fc8d..550828d 100755 --- a/configure +++ b/configure @@ -1,6 +1,17 @@ #!/bin/bash - -echo "export PKG_CONFIG_PATH=$HOME/.local/share/zcash-haskell:\$PKG_CONFIG_PATH" | tee -a ~/.bashrc -echo "export LD_LIBRARY_PATH=$HOME/.local/share/zcash-haskell:\$LD_LIBRARY_PATH" | tee -a ~/.bashrc +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" source ~/.bashrc +echo "... building zcash-haskell" cd zcash-haskell && cabal build +echo +echo "Done" +echo