download_dependencies.sh 494 Bytes
Newer Older
Aravind Bk's avatar
Aravind Bk committed
1
#!/bin/bash
2
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Aravind Bk's avatar
Aravind Bk committed
3

4
source "$SCRIPT_DIR/dependencies_config.sh"
Aravind Bk's avatar
Aravind Bk committed
5 6

# Create folders
7 8 9
mkdir $SCRIPT_DIR/$DEPENDENCY_DIRECTORY
mkdir $SCRIPT_DIR/$DEB_PACKAGE_FOLDER
mkdir $SCRIPT_DIR/$PIP_PACKAGE_FOLDER
Aravind Bk's avatar
Aravind Bk committed
10

11 12 13 14 15 16
# Download debs
for LINK in "${DEB_LINKS[@]}"
do
   :
    wget -P $SCRIPT_DIR/$DEB_PACKAGE_FOLDER "$LINK"
done
Aravind Bk's avatar
Aravind Bk committed
17 18

# Download pip packeges using requirements file
Jae Young Lee's avatar
Jae Young Lee committed
19
pip3 download -r $SCRIPT_DIR/$REQUIREMENTS_FILE -d $SCRIPT_DIR/$PIP_PACKAGE_FOLDER