Add batch 5 (Luthiraa_TALOS-V2, dawsonjon_fpu, The-OpenROAD-Project_OpenROAD-flow-scripts, antonblanchard_microwatt, alexforencich_verilog-i2c)
784ee2c verified Download The-OpenROAD-Project_OpenROAD-flow-scripts/tools/codespace/scripts/common.sh from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 873 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/codespace/scripts/common.sh
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/codespace/scripts/common.sh
-
curl -L -o common.sh https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/codespace/scripts/common.sh
873 Bytes
| #------------------------------------------------------------------------------------------------------------- | |
| # Copyright (c) Microsoft Corporation. All rights reserved. | |
| # Copyright (c) 2024 Antmicro <www.antmicro.com> | |
| # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | |
| #------------------------------------------------------------------------------------------------------------- | |
| # | |
| # Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/desktop-lite.md | |
| # Maintainer: The VS Code and Codespaces Teams | |
| set -e | |
| apt_get_update() | |
| { | |
| apt-get update -y | |
| } | |
| # Checks if packages are installed and installs them if not | |
| check_packages() { | |
| if ! dpkg -s "$@" > /dev/null 2>&1; then | |
| apt_get_update | |
| apt-get -y install --no-install-recommends "$@" | |
| fi | |
| } | |