aboutsummaryrefslogtreecommitdiff
path: root/auto-void-packages/commit-push-pr.sh
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2024-10-15 22:02:54 +0200
committerclyhtsuriva <aimeric@adjutor.xyz>2024-10-15 22:02:54 +0200
commitfc05941c60194547286fdceb93b5a0fc85545310 (patch)
tree06640841f6466f606b69fb1d3af0dacbe5e7af18 /auto-void-packages/commit-push-pr.sh
parent6bb700b04a3b393dfdda5500b104b815c289109a (diff)
Continuing auto-build script
Also adding the option to put a custom path for the build architectures file
Diffstat (limited to 'auto-void-packages/commit-push-pr.sh')
-rwxr-xr-xauto-void-packages/commit-push-pr.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto-void-packages/commit-push-pr.sh b/auto-void-packages/commit-push-pr.sh
index 1352c73..769a3cd 100755
--- a/auto-void-packages/commit-push-pr.sh
+++ b/auto-void-packages/commit-push-pr.sh
@@ -3,10 +3,11 @@
helpy(){
-printf "command: %s <package> <version> <tested>\n" "$0"
+printf "command: %s <package> <version> <tested> [path]\n" "$0"
printf "package: package name\n"
printf "version: version update\n"
printf "tested: yes/briefly/no\n"
+printf "path (optional): path of architectures file, defaults to '\$HOME/workbench/auto-void-packages/architectures.txt'\n"
}
@@ -14,6 +15,7 @@ printf "tested: yes/briefly/no\n"
PKG="$1"
VER="$2"
TESTED="$3"
+archs_fp="${4:-$HOME/workbench/auto-void-packages/architectures.txt}"
printf "Updating %s to %s.\n" "$PKG" "$VER"
pushd ~/workbench/void-packages || exit 1
@@ -22,7 +24,7 @@ git add "srcpkgs/$PKG" && \
git commit -m "$PKG: update to $VER" && \
git push origin "$PKG-update"
-ARCHS=$(/bin/cat "$HOME/workbench/auto-void-packages/architectures.txt")
+ARCHS=$(/bin/cat "$archs_fp")
gh pr create \
--title "$PKG: update to $VER" \