Setup sanity checks
[novacoin.git] / mingw64_deps / db / setup.sh
index 6b373ee..007c536 100755 (executable)
@@ -1,5 +1,20 @@
 #!/bin/bash
 
+if [[ ! $(which wget) ]]; then
+    echo "wget is not installed"
+    exit -1
+fi
+
+if [[ ! $(which tar) ]]; then
+    echo "tar is not installed"
+    exit -1
+fi
+
+if [[ ! $(which sed) ]]; then
+    echo "sed is not installed"
+    exit -1
+fi
+
 wget https://fossies.org/linux/misc/db-18.1.40.tar.gz
 tar -xzf db-18.1.40.tar.gz
 mv db-18.1.40 libdb