From d402d5f3081d9e0a1f269e3209b52c23bd355ff3 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Thu, 12 Jan 2023 21:30:29 +0100 Subject: archrelease: print deprecation warning when executed directly --- src/archrelease.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/archrelease.in b/src/archrelease.in index c3776e7..d206ab8 100644 --- a/src/archrelease.in +++ b/src/archrelease.in @@ -11,6 +11,11 @@ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/valid-tags.sh set -e +# Deprecation warning +if [[ -z $_DEVTOOLS_COMMAND ]]; then + warning "${0##*/} is deprecated and will be removed. Use 'pkgctl release' instead" +fi + # parse command line options FORCE= while getopts ':f' flag; do -- cgit v1.2.3-70-g09d2