copyright and tweaks
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Copyright 2019-2021 The Hush developers
|
||||||
|
# Released under the GPLv3
|
||||||
|
|
||||||
# First thing to do is see if libsodium.a exists in the res folder. If it does, then there's nothing to do
|
# First thing to do is see if libsodium.a exists in the res folder. If it does, then there's nothing to do
|
||||||
if [ -f res/libsodium.a ]; then
|
if [ -f res/libsodium.a ]; then
|
||||||
|
echo "libsodium is already built! Nothing to do"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -10,10 +13,14 @@ echo "Building libsodium"
|
|||||||
# Go into the lib sodium directory
|
# Go into the lib sodium directory
|
||||||
cd res/libsodium
|
cd res/libsodium
|
||||||
if [ ! -f libsodium-1.0.18.tar.gz ]; then
|
if [ ! -f libsodium-1.0.18.tar.gz ]; then
|
||||||
|
echo "Downloading libsodium"
|
||||||
curl -LO https://github.com/MyHush/libsodium/releases/download/1.0.18/libsodium-1.0.18.tar.gz
|
curl -LO https://github.com/MyHush/libsodium/releases/download/1.0.18/libsodium-1.0.18.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# TODO: check libsodium downloaded correctly
|
||||||
|
|
||||||
if [ ! -d libsodium-1.0.18 ]; then
|
if [ ! -d libsodium-1.0.18 ]; then
|
||||||
|
echo "Unpacking libsodium"
|
||||||
tar xf libsodium-1.0.18.tar.gz
|
tar xf libsodium-1.0.18.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user