From 6df971bbc2d51ad03c0a47aa341034e2cd667f94 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Fri, 15 Aug 2025 11:50:38 +0100 Subject: [PATCH] Add a script for running through some basic repository setup Add a repository_setup.sh script that automates a couple of setup steps for setup of new rust-vmm repositories. It also supports updating the configuration of already created repositories by comparing the repository's configuration to the defaults in rust-vmm-ci and giving the option to update. Currently, the script supports dependabot setup and .platform file generation. It does not deal with the coverage files, since I am still hoping to switch us over to codecov.io in the future, at which point that will all changes completely anyway. Signed-off-by: Patrick Roy --- setup_repository.sh | 101 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100755 setup_repository.sh diff --git a/setup_repository.sh b/setup_repository.sh new file mode 100755 index 0000000..2ffc5d2 --- /dev/null +++ b/setup_repository.sh @@ -0,0 +1,101 @@ +#!/bin/bash + +set -euo pipefail + +cat <> $PLATFORMS_FILE + fi + done +} + +setup_dependabot_config() { + mkdir -p $(dirname $DEPENDABOT_FILE) + + cat <