From 18d809f79ad30c9d7e142c46ee6b92f0e0decc2e Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Mon, 20 Jan 2025 20:00:55 +0100 Subject: [PATCH] README.sh: add setup info Signed-off-by: Maciej Pijanowski --- .gitignore | 1 + README.md | 9 +++++++++ setup.sh | 11 +++++++++++ 3 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100755 setup.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..52a4162 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dts/dts-base-image-v*.wic diff --git a/README.md b/README.md index 7688024..7b4112f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,15 @@ We do not use [remote in git-annex](https://git-annex.branchable.com/special_remotes/) right now, we rely on URLs prepare beforehand. It may change in the future. +## Setup this repo + +* After cloning, execute following to finalize test data setup: + +```bash +git annex pull +./setup.sh +``` + ## Common actions * Add new file from URL: diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..d4ae868 --- /dev/null +++ b/setup.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Various setup actions after cloning this repo to fully prepare data for +# testing + + +# dts +if pushd dts; then + gzip -cdk dts-base-image-v2.1.3.wic.gz > dts-base-image-v2.1.3.wic + popd +fi