From fdb6e7ad1be3aeef52b7adc88ca020a5445edb08 Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Tue, 18 Feb 2025 20:43:11 +0000 Subject: [PATCH 1/3] chore: adding convenience script to new utility dir * creates a new directory for utilities * adds the currently-in-use copy of pull-all-repos-in-directory.sh that is currently only shared via the hosted devstack AMI FIXES: APER-3925 --- utils/pull-all-repos-in-directory.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 utils/pull-all-repos-in-directory.sh diff --git a/utils/pull-all-repos-in-directory.sh b/utils/pull-all-repos-in-directory.sh new file mode 100644 index 0000000000..ac2205c25f --- /dev/null +++ b/utils/pull-all-repos-in-directory.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +################ + +sync_directory() { + IFS=$'\n' + + for REPO in `ls "$1/"` + do + if [ -d "$1/$REPO" ] + then + echo "Updating $1/$REPO at `date`" + if [ -d "$1/$REPO/.git" ] + then + git -C "$1/$REPO" pull + else + sync_directory "$1/$REPO" + fi + echo "Done at `date`" + fi + done +} + +REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +sync_directory $REPOSITORIES + From 3dcf6b0d6cda27f5c1a2951b3a878a708c06cebb Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Tue, 18 Feb 2025 20:51:07 +0000 Subject: [PATCH 2/3] chore:adding a readme the new directory would benefit from a readme FIXES: APER-3925 --- utils/README.rst | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 utils/README.rst diff --git a/utils/README.rst b/utils/README.rst new file mode 100644 index 0000000000..b7bbfcf639 --- /dev/null +++ b/utils/README.rst @@ -0,0 +1,5 @@ +Devstack +######## + +This directory holds convenience and utility scripts that might be useful to +users of devstack, but have no other home in source control. From 3a3f0151b132fad48340d9167f0927acbc333719 Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Tue, 18 Feb 2025 20:52:25 +0000 Subject: [PATCH 3/3] chore: fixing the header line making the header line more useful FIXES: APER-3925 --- utils/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/README.rst b/utils/README.rst index b7bbfcf639..323beec790 100644 --- a/utils/README.rst +++ b/utils/README.rst @@ -1,5 +1,5 @@ -Devstack -######## +utils +##### This directory holds convenience and utility scripts that might be useful to users of devstack, but have no other home in source control.