blob: 6f4330760bb4b0d2253daeb382fa579f71ffee1a [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# Given the name of the release (e.g., 18.04), this script downloads all
9# Linaro release archives to the current directory, verifies, extracts, and
10# finally removes the archive files.
11
12set -e
13
14# Download all ZIP files from the chosen Linaro release
15time wget -q -c -m -A .zip -np -nd "https://releases.linaro.org/members/arm/platforms/${1:?}/"
16
17# Uncompress each ZIP file in its own directory (named after the ZIP file)
18for zipfile in $(echo *.zip); do
19 echo
20 echo "Uncompressing file $zipfile"
21
22 unzip -d "${zipfile%.zip}" "$zipfile"
23done
24
25rm -f *.zip