Setup sanity checks
[novacoin.git] / mingw64_deps / db / setup.sh
1 #!/bin/bash
2
3 if [[ ! $(which wget) ]]; then
4     echo "wget is not installed"
5     exit -1
6 fi
7
8 if [[ ! $(which tar) ]]; then
9     echo "tar is not installed"
10     exit -1
11 fi
12
13 if [[ ! $(which sed) ]]; then
14     echo "sed is not installed"
15     exit -1
16 fi
17
18 wget https://fossies.org/linux/misc/db-18.1.40.tar.gz
19 tar -xzf db-18.1.40.tar.gz
20 mv db-18.1.40 libdb
21 sed -i "s/WinIoCtl.h/winioctl.h/g" libdb/src/dbinc/win_db.h