From 391e856f92f2724811898d37e7a1b5d4ed8d8b21 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Tue, 21 Nov 2023 10:44:16 +0100 Subject: [PATCH] UBUNTU: [Packaging] update helper scripts BugLink: https://bugs.launchpad.net/bugs/1786013 Signed-off-by: Andrea Righi --- debian/scripts/helpers/rebase | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/scripts/helpers/rebase b/debian/scripts/helpers/rebase index 201179f1698f..925f163f57ac 100755 --- a/debian/scripts/helpers/rebase +++ b/debian/scripts/helpers/rebase @@ -39,7 +39,18 @@ usage+="-r RELEASE_REPO Git repository to fetch the reference branch from."$'\n usage+="-b REMOTE_BRANCH Remote branch to fetch from."$'\n' usage+="-l LOCAL_BRANCH Use LOCAL_BRANCH as the reference branch."$'\n' usage+="-o Rebase against own kernel."$'\n' -usage+="-d Dry run (do not rebase)." +usage+="-d,--dry-run Dry run (do not rebase)." + +# Convert long options to short options +for arg in "$@" +do + shift + case "$arg" in + '--dry-run') set -- "$@" '-d' ;; + '--'*) echo "usage: ${usage}"; exit ;; + *) set -- "$@" "$arg" ;; + esac +done # # command line options: