Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/commitpkg.in
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/commitpkg.in
parentd402d5f3081d9e0a1f269e3209b52c23bd355ff3 (diff)
commitpkg: print deprecation warning when executed directly
Diffstat (limited to 'src/commitpkg.in')
-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