From 1ae09b43af632c3a61135dc295c9c1b12b227669 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Thu, 12 Jan 2023 21:30:56 +0100 Subject: commitpkg: print deprecation warning when executed directly --- src/commitpkg.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/commitpkg.in') diff --git a/src/commitpkg.in b/src/commitpkg.in index f80a6cd..5f29881 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -55,6 +55,11 @@ fi cmd=${0##*/} +# Deprecation warning +if [[ -z $_DEVTOOLS_COMMAND ]]; then + warning "${cmd} is deprecated and will be removed. Use 'pkgctl release' instead" +fi + if [[ ! -f PKGBUILD ]]; then die 'No PKGBUILD file' fi -- cgit v1.2.3-70-g09d2