forked from torx-software/txda-license-compliance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile-dependencies.sh
executable file
·27 lines (22 loc) · 1.04 KB
/
compile-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set -e
# Requires wget and bash > 4.0
# Dependencies in the format "<name> <url>"
# If you get an error on OS X, try `brew install bash` first
declare -A DEPENDENCIES
DEPENDENCIES=(
[chardet-4.0.0]=https://github.com/chardet/chardet/archive/refs/tags/4.0.0.zip
[text-unidecode-1.3]=https://github.com/kmike/text-unidecode/archive/refs/tags/1.3.zip
[certifi-2021.10.8]=https://github.com/certifi/python-certifi/archive/refs/tags/2021.10.08.zip
[certifi-2022.5.18.1]=https://github.com/certifi/python-certifi/archive/refs/tags/2022.05.18.1.zip
[certifi-2022.6.15]=https://github.com/certifi/python-certifi/archive/refs/tags/2022.06.15.zip
[psycopg2-2.8.6]=https://github.com/psycopg/psycopg2/archive/refs/tags/2_8_6.zip
[psycopg2-2.9.3]=https://github.com/psycopg/psycopg2/archive/refs/tags/2_9_3.zip
)
# Remove existing
rm -rf ./dependencies
mkdir dependencies
for dependency in "${!DEPENDENCIES[@]}";
do
(cd ./dependencies && mkdir -p $dependency && cd $dependency && wget ${DEPENDENCIES[$dependency]})
done