summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2023-01-12 21:30:56 +0100
committerLevente Polyak <anthraxx@archlinux.org>2023-05-20 00:08:11 +0200
commit1ae09b43af632c3a61135dc295c9c1b12b227669 (patch)
treee0d5ad56e918b1909dcbcfa0d29be9d3ba4a583c /src
parentd402d5f3081d9e0a1f269e3209b52c23bd355ff3 (diff)
downloaddevtools-1ae09b43af632c3a61135dc295c9c1b12b227669.tar.xz
commitpkg: print deprecation warning when executed directly
Diffstat (limited to 'src')
-rw-r--r--src/commitpkg.in5
1 files changed, 5 insertions, 0 deletions
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