From 78dd15099684615e98d20dfaa2b9fbe5ca3f6e6b Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Fri, 5 Jan 2024 01:07:39 +0100 Subject: [PATCH] chore(offload-build): deprecate in favor of pkgctl build --offload Emit a warning when offload-build is invoked to warn about future removal. Signed-off-by: Levente Polyak --- src/offload-build.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/offload-build.in b/src/offload-build.in index 027bad3..0aa2e38 100644 --- a/src/offload-build.in +++ b/src/offload-build.in @@ -8,6 +8,11 @@ source /usr/share/makepkg/util/config.sh +# Deprecation warning +if [[ -z $_DEVTOOLS_COMMAND ]]; then + colorize + warning "${0##*/} is deprecated and will be removed. Use 'pkgctl build --offload' instead" +fi # global defaults suitable for use by Arch staff repo=extra