add scripts to r9

This commit is contained in:
Louis Abel 2024-04-01 12:02:38 -07:00
parent 9b17d138c8
commit eeb584155b
Signed by: label
GPG Key ID: 2A6975660E424560
2 changed files with 24 additions and 0 deletions

17
scripts/conv-to-beta.sh Normal file
View File

@ -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"

View File

@ -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"