summaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-04-18 14:50:58 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-18 14:50:58 -0500
commit25c3efb06437aec88fbddd116b6805439fe98d9c (patch)
tree589bbbf0f5ae21e8d936f4ae8998efe4be79858f /mach
parent9aa43eb3d70ce9f2ced34bb6811b3b939688739d (diff)
downloadaura-central-25c3efb06437aec88fbddd116b6805439fe98d9c.tar.gz
Update bash-mach with build-release and amend-author commands
Diffstat (limited to 'mach')
-rwxr-xr-xmach13
1 files changed, 12 insertions, 1 deletions
diff --git a/mach b/mach
index 23587b7b8..2dc247cd0 100755
--- a/mach
+++ b/mach
@@ -33,7 +33,12 @@ export BINOC_CONFIG_GUESS=$BINOC_CONFIG_GUESS
# =====================================================================================================================
-if [[ "$1" == "webpatch" ]] && [[ -n "$BINOC_GIT" ]] && [[ -n "$BINOC_CURL" ]]; then
+if [[ "$1" == "build-release" ]]; then
+ $BINOC_MACH build && $BINOC_MACH package && $BINOC_MACH mar --bz2 && $BINOC_MACH langpack && $BINOC_MACH theme
+ if [[ "$BINOC_TARGET_OS" == "windows" ]]; then
+ $BINOC_MACH installer
+ fi
+elif [[ "$1" == "webpatch" ]] && [[ -n "$BINOC_GIT" ]] && [[ -n "$BINOC_CURL" ]]; then
if [ -z "$2" ]; then
printf "Patch with what?"
exit 1
@@ -45,6 +50,12 @@ if [[ "$1" == "webpatch" ]] && [[ -n "$BINOC_GIT" ]] && [[ -n "$BINOC_CURL" ]];
$BINOC_CURL -L ${2} | "$BINOC_GIT" apply --reject
fi
fi
+elif [[ "$1" == "amend-author" ]]; then
+ if [[ -z "$2" ]]; then
+ printf "Amend author on commit with what? (First Last <email@domain.tld>"
+ exit 1
+ fi
+ "$BINOC_GIT" commit --amend --no-edit --author "$(echo ${@:2})"
else
# We don't know what the command is but real-mach might so just pass
# all the args to it