From eeb584155bd7ea1ac22b2da43d0c9b312c7e3f42 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 1 Apr 2024 12:02:38 -0700 Subject: [PATCH] add scripts to r9 --- scripts/conv-to-beta.sh | 17 +++++++++++++++++ scripts/conv-to-stable.sh | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 scripts/conv-to-beta.sh create mode 100644 scripts/conv-to-stable.sh diff --git a/scripts/conv-to-beta.sh b/scripts/conv-to-beta.sh new file mode 100644 index 0000000..500cf9b --- /dev/null +++ b/scripts/conv-to-beta.sh @@ -0,0 +1,17 @@ +#!/bin/bash +#git branch -D r10-beta +TOSET="$1" + +if [ -z "$TOSET" ]; then + echo "empty version" + exit 12 +fi + +git branch -D r10-beta +git checkout -b r10-beta +sed -i "/^VERSION/ s/9-lh/$TOSET/g" rocky/variables.conf +sed -i "s/r9s/r9-beta/g" rocky/variables.conf +git add -A +git commit -m "Set to $TOSET and prep" + +echo "Use git push -f to push to r9-beta" diff --git a/scripts/conv-to-stable.sh b/scripts/conv-to-stable.sh new file mode 100644 index 0000000..8aefe9d --- /dev/null +++ b/scripts/conv-to-stable.sh @@ -0,0 +1,7 @@ +#!/bin/bash +git branch -D r9 +git checkout -b r9 +sed -i "s/r9-beta/r9/g" rocky/variables.conf +git add -A +git commit -m "Set to stable" +echo "Use git push -f to push to r9"